I'm using Telerik:RadEditor. I've added a toolbar icon with this code:
and the javascript is:
When I click on this icon, editor mode is changed to HTML.
The problem is that the toolbar becomes disable and I can't switch back to Design mode. Please tell me how can I prevent the toolbar to disable when in HTML mode. Please note I'm not using Design, HTML, Preview buttons under the editor's content area, but only the toolbar.
telerik:EditorTool Name="ChangeMode" Text="View/Edit Source" />
Telerik.Web.UI.Editor.CommandList["ChangeMode"] = function(commandName, editor, args) {
editor.set_mode(2);
};
The problem is that the toolbar becomes disable and I can't switch back to Design mode. Please tell me how can I prevent the toolbar to disable when in HTML mode. Please note I'm not using Design, HTML, Preview buttons under the editor's content area, but only the toolbar.