Howto change default font in WSS only environment

7 posts, 1 answers
  1. Plopper
    Plopper avatar
    12 posts
    Member since:
    Jul 2008

    Posted 28 Jul 2008 Link to this post

    After having read dozens of articles in this forum on similar topics, I realized that it just was not there: I'm desparately seeking an answer on how to change the default (Times New Roman, size 3, black) font in the RadEditor for MOSS, when it is deployed in a WSSv3-only scenario.

    I am using the latest version of RadEditor MOSS (version 5.1).
    I am using (and testing) the editor in a WSS List.

    I find it very hard to find helpful information on WSS only deployments - could you please set up a separate hive for that?

  2. Answer
    George
    Admin
    George avatar
    859 posts

    Posted 29 Jul 2008 Link to this post

    Hi Plopper,

    You can easily achieve the desired behavior by creating the /wpresources/RadEditorSharePoint/5.1.0.0__1f131a624888eeed/Resources/CssEditor.css file and in it set the styles to be applied to the editor's content e.g.
    body
    {
        color: black !important;
        font-family: TimesNewRoman !important; 
        font-size: 10pt !important;
    }

    For more information on this please review the following help article:
    http://www.telerik.com/help/aspnet-ajax/defining-custom-css-styles.html

    Sincerely,
    George
    the Telerik team

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

  3. Plopper
    Plopper avatar
    12 posts
    Member since:
    Jul 2008

    Posted 30 Jul 2008 Link to this post

    Hi George,

    Thank you for your quick reply. I did not realize that the css file had to be called 'CssEditor.css'. (I tried to configure some other css file through the CssFiles propoerty of the ListConfigFile.xml file, but apparently that does not work that way).

    Your solution worked for setting the default font - thanx!
  4. Juha Pitkänen
    Juha Pitkänen avatar
    2 posts
    Member since:
    Oct 2008

    Posted 06 Oct 2008 Link to this post

    Hello George,

    I don't seem to be able to change the default font for RadEditorMOSS 5.2.2.0 even if I follow the instructions you gave to Plopper by creating the CssEditor.css to \wpresources\RadEditorSharePoint\5.2.2.0__1f131a624888eeed\Resources and defining the wanted font-family with the !important directive. I'm using FieldEditor's RadHtmlField.

    I've also tried to define font names to ToolsFile.xml (http://www.telerik.com/help/aspnet-ajax/fonts.html) and even tried to modify RadEditor.js with Telerik.EnableEmbeddedSkins swtiched to false with no success.

    Am I missing something here.

    Regards, Juha


  5. Juha Pitkänen
    Juha Pitkänen avatar
    2 posts
    Member since:
    Oct 2008

    Posted 06 Oct 2008 Link to this post

    Hi again,

    Got it to work after iisreset. Thanks for the original instructions.

    Juha
  6. George
    Admin
    George avatar
    859 posts

    Posted 06 Oct 2008 Link to this post

    Hi Juha,

    I am glad that the issue you were facing is now resolved.

    Have a great day,
    George
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. dharyl
    dharyl avatar
    3 posts
    Member since:
    Jan 2009

    Posted 20 Jan 2009 Link to this post

     
Back to Top