More in this section

Forums / Developing with Sitefinity / Random CSS Styles appearing in the RadEditor

Random CSS Styles appearing in the RadEditor

2 posts, 0 answered
  1. Milkman Dan
    Milkman Dan avatar
    14 posts
    Registered:
    11 Mar 2008
    12 May 2008
    Link to this post
    I'm trying to personalize the "ApplyClass" toolbar in my RadEditor. I've started with the Generic Content Module and I'm experiencing some problems.

    I've been able to insert a couple of my own classes in the dropdown but I still get some undesired random classes appearing there, namely: RadEWrongWord and RadEDomMouseOver.

    I tried commenting these out of the EditorContentArea.css file under \Sitefinity\Admin\Themes\Default\Skins\Editor\Default2\, and that yields no results.

    I've added my styles by using this markup in the ControlPanelEdit.ascx :
    <telerik:RadEditor ... 
       <CssFiles> 
          <telerik:EditorCssFile Value="~/path-to-my-stylesheet.css" /> 
       </CssFiles> ... 
    </telerik:RadEditor> 

    If there's a way, I'd like to instead declare those styles in the EditorToolsFile.xml as this help document suggests I can. When I try to just declare them in that file I get even more random styles in that dropdown and none of my own.

    I'm confused here. How do I get my styles in there?
  2. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    15 May 2008
    Link to this post
    Hi Milkman Dan,

    In order to set your own css styles for the editor content area in Sitefinity 3.2, you need to edit the ~/Sitefinity/Admin/Themes/Default/Prometheus/Default2006/EditorContentArea.css file. There you can delete the RadEWrongWord and RadEDomMouseOver and add the styles you want to appear in the Apply Class dropdown.

    For more information about CSS styles with RadEditor for ASP.NET Ajax, see this help article:
    http://www.telerik.com/help/aspnet-ajax/cssstyles.html

    I hope this helps. Let us know if you need any further assistance.

    Greetings,
    Rebecca
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered