+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / ContentBlock RadEditor tools and toolbars: ApplyCss not showing custom options

ContentBlock RadEditor tools and toolbars: ApplyCss not showing custom options

6 posts, 0 answered
  1. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    03 Apr 2012
    Link to this post
    Hi there, 

    This issue is for Sitefinity 4.4. 
    I've followed the instructions on this page: http://www.sitefinity.com/blogs/grishakaranikolov/posts/11-07-25/customizing_the_sitefinity_wysiwyg_editor.aspx
    But I don't see my custom classes at all. I've cleared my cache, restarted IIS and still nothing. 

    Mapping the tools file to a custom location using the Administration>Settings>Advanced>Appearance>StandardEditorConfiguration worked, because I can add and remove different tools. 

    Then I added the following to the tools file: 
    <root>
       <tools name="MainToolbar">
          ...
          <tool name="ApplyClass" />
          ...
       </tools>
       <tools name="other">
          ...
       </tools>
    </root>

    This worked, the apply css drop down appears with a single option "Clear Class". 

    Then I added the next section: 
    <root>
       <tools name="MainToolbar">
          ...
          <tool name="ApplyClass" />
          ...
       </tools>
       <tools name="other">
          ...
       </tools>
      <classes>
        <class name="Heading Part" value=".headingThin" />
        <class name="Images Class" value=".img" />
        <class name="My Red Text" value=".redText" />
      </classes>
    </root>

    Restarted IIS cleared cache, nothing. My custom classes don't appear. 

    Then I added the following: 
    <root>
       <tools name="MainToolbar">
          ...
          <tool name="ApplyClass" />
          ...
       </tools>
       <tools name="other">
          ...
       </tools>
      <classes>
        <class name="Heading Part" value=".headingThin" />
        <class name="Images Class" value=".img" />
        <class name="My Red Text" value=".redText" />
      </classes>
      <cssFiles>
        <item name="~/Sitefinity/WebsiteTemplates/Template2012/App_Themes/CorporateTheme/Global/00editorStyles.css" />
      </cssFiles>
    </root>

    This did nothing at all. 

    Where am I going wrong? 

    Thanks,
    Jacques
  2. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    27 Apr 2012
    Link to this post
    Can anybody help me with this? 

    I'm looking at: 
    http://www.sitefinity.com/blogs/grishakaranikolov/posts/11-07-25/customizing_the_sitefinity_wysiwyg_editor.aspx 
    http://www.telerik.com/help/aspnet-ajax/editor-css-styles.html 

    But none of this seems to work in Sitefinity 4.4. 

    The custom toolsfile is definitely taking effect because I can move tools around and the ApplyCSS drop down comes up, but it doesn't populate with anything other than clear class. 

    ?
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    08 Apr 2013 in reply to Jacques
    Link to this post
    Ever solve this?...I have it borked on 2 sites, put in another ticket on it...but just curious
  4. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    08 Apr 2013 in reply to Steve
    Link to this post
    Hi Steve,

    If I remember correctly, this was actually a bug that appeared to only affect Firefox. When I tested in IE, Safari or Chrome it worked fine.

    Are you using Firefox?

    Regards,
    Jacques
  5. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    08 Apr 2013 in reply to Jacques
    Link to this post
    I would be using FF, thanks!

    ...still a bug then all this time later
  6. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    08 Apr 2013 in reply to Steve
    Link to this post
    Yip unfortunately.

    No problem.
6 posts, 0 answered