More in this section

Forums / Developing with Sitefinity / [3.6] Editor CSS classes

[3.6] Editor CSS classes

2 posts, 0 answered
  1. Michael
    Michael avatar
    31 posts
    07 Sep 2007
    09 Mar 2009
    Link to this post
    I installed SF 3.6 and I can't seem to add any new css classes to my dropdown in my editor.  All that shows is "Clear Class".  I have added this in my EditorToolsFile.xml.  What more do I have to do?

      <tools name="DropdownToolbar" dockable="false"
        <tool name="FormatBlock"/> 
        <tool name="FormatStripper"/> 
        <tool name="ApplyClass"/>  
        <class name="Image Border" value=".imgborder" />  
        <class name="Home Left" value=".homeLeft" />  
  2. Pepi
    Pepi avatar
    981 posts
    31 Jan 2017
    10 Mar 2009
    Link to this post
    Hello Michael,

    Follow the instructions below:
    1. Open ~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml file
    2. Specify the path to the css file, which you need the editor to use:

        <item name="~/Sitefinity/Admin/ControlTemplates/Styles1.css" /> 

    3. Delete the <class> elements which appear as child elements of an element <classes>:

    <class name="Add CssClasses collection here:" value=".attention" /> 
    <class name="EditorToolsFile.xml" value=".read" /> 

    For more details, please refer to the following article: External CSS Files

    Do let us know if this helps.

    Best wishes,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered