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

Forums / General Discussions / Rad Editor Styles

Rad Editor Styles

4 posts, 0 answered
  1. Rick
    Rick avatar
    4 posts
    Registered:
    05 Jun 2009
    31 Aug 2009
    Link to this post
    I have a separate CSS file that is being read in by the master page for my site to house all the special styles that I need.   That works fine.   I am trying to find where the Rad Editor (I think it is the default content editor in 3.7) has it's CSS file that is used to display styles in the Design View editor via the Pick List pull down. 

    While I can change the styles on content, I would rather have non technical people be able to use the pick list to apply my special treatments.

    Any ideas on how I can do this.   I Should be able to include this new styles in the editor css file I guess.



  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    01 Sep 2009
    Link to this post
    Hello Rick,

    You can enable Css Styles Drop Down from your  ToolsFil.xml. Then, you can programmatically set predefined css classes that will appear in Css Styles Drop Down.

        public void Page_Load(object sender, EventArgs e) 
        { 
            textEditor.CssFiles.Add("~/App_Themes/Blue with right sidebar/style.css"); 
            textEditor.CssClasses.Add("Img Class"".img");  
        } 

    I hope this helps.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Rick
    Rick avatar
    4 posts
    Registered:
    05 Jun 2009
    01 Sep 2009
    Link to this post
    I am not able to find that file.   I see four files that are named "toolsfile.xmls.  But they are in the areas of blogs and forums.  I'm looking to change the editor for general content.

    Can you point me to where your code snippet came from please
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    01 Sep 2009
    Link to this post
    Hello Rick,

    You should edit the following file ~/Sitefinity/Admin/ControlTemplates/EditorToolsFile.xml

    For more information please take a look at:

    Toolbar Intro
    Using the Toolsfile
    Css Styles
    External Css Files


    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
4 posts, 0 answered