RadEditor
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.
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
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
>
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.
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