Adjusting font size/color for HTML editor tab

4 posts, 0 answers
  1. Alex
    Alex avatar
    2 posts
    Member since:
    Sep 2010

    Posted 29 Sep 2010 Link to this post

    For the RadEditor in MOSS, is there any configuration or parameters to adjust the default display font size color when users switch to the HTML Editor?
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 30 Sep 2010 Link to this post

    Hello Alex,

    What you need to do is load style such as the following in the content area of RadEditor:

    body
    {
        font-family: Verdana;
        font-size: 9px;
    }
    You can find information how to do this in the following online help article: Defining custom CSS styles



    Regards,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. Alex
    Alex avatar
    2 posts
    Member since:
    Sep 2010

    Posted 30 Sep 2010 Link to this post

    I tried the suggestion but when I go into edit mode for a page and switch the edit mode to HTML Editor in the RAD Editor box the font size remains the same...See picture of the font size.



  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 01 Oct 2010 Link to this post

    Hi Alex,

    Here is what to do:
    1. Add the following elements to the respective ConfigFile.xml or ListConfigFile.xml, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder:
    <property name="OnClientLoad">OnClientLoad</property>
    2. Add the following javascript code to the MOSSEditorTools.js file, which is located in the mentioned above folder:
    function OnClientLoad(editor, args)
    {
        //here you can modify the text area style
        editor.get_textArea().style.font = "13px Verdana";
    }


    I hope this helps.


    Kind regards,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top