More in this section

Forums / Designing with Sitefinity / Adding a Theme to RadEditor in Generic Content

Adding a Theme to RadEditor in Generic Content

2 posts, 0 answered
  1. Imran
    Imran avatar
    75 posts
    17 Jan 2007
    01 Dec 2008
    Link to this post
    I would like to add a theme to the 3 radeditors in the Generic_Content control templates:


    When I try this, nothing happens. Example:


    <telerik:RadEditor runat="server" ID="RadEditor1" ToolsFile="~/Common/XML/ToolsFile.xml" SkinID="HodderAdmin">


    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

    <telerik:radeditor runat="server" SkinId="HodderAdmin"

    Width="600" Height="400" Skin="Gray"



    <ImageManager ViewPaths="~/Assets/Content" DeletePaths="~/Assets/Content" UploadPaths="~/Assets/Content" />

    <DocumentManager ViewPaths="~/Assets/Content" DeletePaths="~/Assets/Content" UploadPaths="~/Assets/Content" />


    <telerik:EditorCssFile Value="~/site-media/css/RadEditor.css" />





    <telerik:EditorParagraph Title="Clear Formatting" Tag="<body>" />

    <telerik:EditorParagraph Title="Paragraph Intro" Tag="<p class='intro'>" />

    <telerik:EditorParagraph Title="Heading 3" Tag="<h3>" />

    <telerik:EditorParagraph Title="Heading 3 Quote" Tag="<h3 class='quote'>" />

    <telerik:EditorParagraph Title="Heading 4" Tag="<h4>" />

    <telerik:EditorParagraph Title="Heading 5" Tag="<h5>" />



    Any help would be greatly appreciated.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    01 Dec 2008
    Link to this post
    Hi Imran,

    it is not possible to set the Theme in the declaration of the control templates. I think that the easiest and better way is to work with Skins. Thus, after you have created some skins you will be able to set them to each template using the Skin property of the RadEditor( let's assume we are discussing for this control.). You could create a new skin (let's say EditorCustomSkin.css) and add it to the following directory: ~\Sitefinity\Admin\Themes\Default\AjaxControlsSkins\Sitefinity\EditorCustomSkin.css
    Then, import the skin in the RadControlsSkins.css file (~\Sitefinity\Admin\Themes\Default\RadControlsSkins.css) and set the Skin property in the RadEditor declaration of the desired template.

    I hope this helps.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered