Customizing the RadEditor Tool Bar

Return to previous page

  • 4/7/2015
  • 1180 Views

Comments

1180 Views

Customizing the RadEditor Tool Bar

Last updated 6 years ago

Comments

Common

(Enter the content of this article below)

Advanced

 
The default editor in DotNetNuke has been the RadEditor (by telerik) since version 05.02.00. This editor is very robust and feature rich, including things like spell check, XHTML formatting, and many other advanced features. It is considered by many to be the best web-based WYSIWYG HTML editor available. I tend to agree.

With all of those features, it is very possible that some less advanced end-users might not enjoy the toolbar in its default state. For example, you might want to remove functionality from the default toolbar. Imagine removing advanced functionality like image maps, code validator, flash manager, etc.

The editor allows you to customize this user experience very easily. Unfortunately, there isn’t an option to do this through any of the administration of the website at this time. You have to have file-level access to modify the files.

DotNetNuke ships with two tool configuration files. They are:

  • ~/Providers/HtmlEditorProviders/Telerik/Config/ToolsDefault.xml
  • ~/Providers/HtmlEditorProviders/Telerik/Config/ToolsMinimal.xml

The editor uses the “ToolsDefault.xml” file, but you can easily change that by making a single change in the web.config file of your DNN site.

Find the line in your web.config that begins with <add name="TelerikEditorProvider" and change the value for the toolsFile attribute to the new XML tools file. If you simply change from the ToolsDefault file to the ToolsMinimal file, you will see a significant difference in the two screen shots below.

Image

Image

Here is the line of code you’d be changing in the web.config, before and after.


<!-- BEFORE -->

<add name="TelerikEditorProvider"

type="DotNetNuke.HtmlEditor.TelerikEditorProvider.EditorProvider, DotNetNuke.HtmlEditor.TelerikEditorProvider"

providerPath="~/Providers/HtmlEditorProviders/Telerik/"

toolsFile="~/Providers/HtmlEditorProviders/Telerik/Config/ToolsDefault.xml"

configFile="~/Providers/HtmlEditorProviders/Telerik/Config/ConfigDefault.xml"

FilterHostExtensions="True" />

<!-- AFTER -->

<add name="TelerikEditorProvider"

type="DotNetNuke.HtmlEditor.TelerikEditorProvider.EditorProvider, DotNetNuke.HtmlEditor.TelerikEditorProvider"

providerPath="~/Providers/HtmlEditorProviders/Telerik/"

toolsFile="~/Providers/HtmlEditorProviders/Telerik/Config/ToolsMinimal.xml"

configFile="~/Providers/HtmlEditorProviders/Telerik/Config/ConfigDefault.xml"

FilterHostExtensions="True" />


Unfortunately, this change occurs for the entire installation of DNN right now. So, plan how you minimize your toolbars accordingly.
Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out