Use only CssEditor.css?

4 posts, 0 answers
  1. Cecilia
    Cecilia avatar
    10 posts
    Member since:
    Nov 2007

    Posted 29 Apr 2008 Link to this post

    Hi!

    I wonder how I can get the "Apply CSS Class" drop down to only display  the classes in the CssEditor.css and not from HtmlEditorCustomStyles.css and HtmlEditorTableFormats.css.

    Thanks!
    Regards Cecilia
  2. George
    Admin
    George avatar
    859 posts

    Posted 29 Apr 2008 Link to this post

    Hi Cecilia,

    You need to manually set the editor's CssFiles property to point to the CssEditor.css file - by doing this the HtmlEditorTableFormats.css and HtmlEditorCustomStyles.css will not be loaded.  

    For more information how to set the editor's properties via Config File please review the following help article:
    http://www.telerik.com/help/radeditormoss/SetPropertiesViaConfigFile.html

    Here is an example that shows how to set the CssFiles property to point to a CustomFile.css:

    <property name="CssFiles">   
    <item>/_wpresources/RadEditorSharePoint/4.5.2.0__1f131a624888eeed/RadControls/Editor/CssEditor.css</item>   
    </property>  

    I hope this helps.

    Best regards,
    George
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

  3. Marco Nijmeijer
    Marco Nijmeijer avatar
    1 posts
    Member since:
    Jul 2008

    Posted 11 Aug 2008 Link to this post

    I'm trying to use this solution but can't get it to work. According to the helpfile (http://www.telerik.com/help/aspnet/editor/usingtheconfigfilexml.html) the CssFiles property isn't an '"item" element valid attributes'.

    I'm using version 5.2.0.0

    The text I have added to the config file:
      <property name="CssFiles">        <item>/_wpresources/RadEditorSharePoint/5.2.0.0__1f131a624888eeed/Resources/RAD_WMD.css</item>   
      </property>  
  4. George
    Admin
    George avatar
    859 posts

    Posted 12 Aug 2008 Link to this post

    Hi Marco,

    Please review the following KB article that shows how to achieve the desired behavior:
    http://www.telerik.com/support/kb/article/b454K-htb-b454T-a-b454c-cbetemdget.aspx


    I hope this helps.

    Kind regards,
    George
    the Telerik team

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