Meilleur auteur de réponses
How to customize SharePoint RichHtmlField : Want to set the default police to 13px instead of 7

Question
-
Hi I want to change the default police of RichHtmlField SharePoint control to 13 px instead of 7. I'm tried several thing like editing the concerned pages in SharePoint designer dans add a new style in the same page and apply the style on the control withing its cssClass property. But its doesnt change anything.
What a really wants is that when I display a page containing RichHtmlField the text goes directly to a 13px size.
Can some one help me? Please?
Ich bin eine Beignet
Réponses
-
This doesnt work
I've already tried this. Just amazing but it doesnt work maybe because when the richHtmlFields is translated in html code by ASP.NEt, its become a Div tag with a style set to inline. Maybe if there was no style defined in that div tag, it would be possible to change the style the way you talking about
Thanks you anyway.
Ich bin eine Beignet- Marqué comme réponse Solution Architect from downtown mardi 22 septembre 2009 13:37
Toutes les réponses
-
Hello,
There is no way to replace font-size of all RichHtmlFields at once, because there is no corresponding css class.
Here is a workaround, but you will need to repeat this on each page layout : with SharePoint Designer, open your page layout and wrap all your RichHtmlFields inside <div class="myRichText">...</div>, then register a css stylesheet file in the master page selection screen that contains .myRichText{font-size:13pt}.
I hope this will help.
http://blogs.developpeur.org/anouvel
Merci de valider les réponses à vos questions et de marquer comme telles les réponses utiles- Proposé comme réponse Arnault Nouvel mardi 22 septembre 2009 08:02
-
This doesnt work
I've already tried this. Just amazing but it doesnt work maybe because when the richHtmlFields is translated in html code by ASP.NEt, its become a Div tag with a style set to inline. Maybe if there was no style defined in that div tag, it would be possible to change the style the way you talking about
Thanks you anyway.
Ich bin eine Beignet- Marqué comme réponse Solution Architect from downtown mardi 22 septembre 2009 13:37
-