This is a migrated thread and some comments may be shown as answers.

Set modules in code-behind

1 Answer 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
CharlesM
Top achievements
Rank 1
CharlesM asked on 24 Mar 2009, 09:38 PM
Is it possible to show/hide the RadEditorStatistics, RadEditorXhtmlValidator modules from code-behind? I am dynamically adding the editor buttons in the code-behind, but have not found a way to do this with the modules. I tried to add them dynamically, but the constructor requires a script parameter, and I am not sure what script to use.

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 26 Mar 2009, 06:23 PM
Hi CharlesM,

You can add modules via the codebehind with the following code:

using Telerik.Web.UI;
...
EditorModule htmlInspector
= new EditorModule();
htmlInspector.Name = "RadEditorHtmlInspector";
htmlInspector.Visible = true;
RadEditor1.Modules.Add(htmlInspector);

Here are the names of the built-in modules of RadEditor:

RadEditorStatistics
RadEditorDomInspector
RadEditorNodeInspector
RadEditorHtmlInspector


Sincerely,
Rumen
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
CharlesM
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or