none
How to customize SharePoint RichHtmlField : Want to set the default police to 13px instead of 7 RRS feed

  • 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
    lundi 21 septembre 2009 16:25

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
    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
    mardi 22 septembre 2009 08:01

  • 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
    mardi 22 septembre 2009 13:37
  • Did you try this :
    http://www.thesug.org/blogs/kyles/Lists/Posts/ViewPost.aspx?ID=24

    or this:
    http://www.telerik.com/help/aspnet-ajax/defining-custom-css-styles.html

    Maybe this could help...
    Let me know
    mercredi 7 octobre 2009 16:03