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

Forums / General Discussions / RadEditor

RadEditor

6 posts, 0 answered
  1. Shawn
    Shawn avatar
    79 posts
    Registered:
    01 Jun 2010
    22 Nov 2010
    Link to this post
    How do I set the buttons that are available in the toolbar or add custom buttons?  In 3.7 I could edit the ToolsFile.xml file but I don't see that option in 4.0.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    23 Nov 2010
    Link to this post
    Hi Shawn,

    You can set a custom ToolsFile for the RadEditor control as shown in this post or create  new EditorConfigurations from Sitefinity/Administration/Settings/Advanced/Appearance where you can use

    MinimalEditorConfiguration or StandardEditorConfiguration a a key and the value should be the path to your tools xml file.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Shawn
    Shawn avatar
    79 posts
    Registered:
    01 Jun 2010
    23 Nov 2010
    Link to this post
    I set both properties to a file path but I'm receiving an error.  It's looking for an embedded resource in a Sitefinity assembly.  I tried changing the xml files to embedded resources but it still didn't work.  Config entry and error are attached.  Am I missing something?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    24 Nov 2010
    Link to this post
    Hi Shawn,

    Ok, it looks like you have to use the custom xml file configuration

    The ContentBlock control has a public property - LayoutTemplatePath which you can use to set map an external template and change some of the properties that HtmlField control expose. HtmlField wraps RadEditor control that ContentBlock uses.

    sample

    <sf:HtmlField
          ID="htmlEditor"
          runat="server"
          Width="99%"
          Height="370px"
          DisplayMode="Write"
          EditorToolsConfiguration="Custom"
          EditorConfigurations="~/test.xml"
          >
      </sf:HtmlField>



    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Shawn
    Shawn avatar
    79 posts
    Registered:
    01 Jun 2010
    24 Nov 2010
    Link to this post
    Will there be an easier way implemented in the official release?  I would like to change the toolbar across the board and it would be a pain to map external templates for every content type that uses the RadEditor. 
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    24 Nov 2010
    Link to this post
    Hello Shawn,

    Form Sitefinity/Administration/Settings/Advanced

    Toolboxes >> Toolboxes >> PageControls >> Sections >> ContentToolboxSection >>Tools >>ContentBlock you can set a template for all instances of this control. We have already logged a task for extending this functionality.


    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
6 posts, 0 answered