Hi,
RadEditorDiagnostics is actually a custom module, which is demonstrated in the following live demo:
Custom Modules. You can get such error if you have put/imported the code of the custom module on the page but the editor is invisible or still not available/created on the page. To fix the problem you should import the script under the RadEditor's declaration and wrap it inside
Type.registerNamespace(
"Telerik.Web.UI.Editor"
);
if
(
typeof
(Telerik.Web.UI.Editor.Modules) !=
"undefined"
) {
//put the module code here
}
or
if (Telerik.Web.UI.Editor && Telerik.Web.UI.Editor.Modules != undefined) { }
Make sure that there is enabled at least one of the built-in modules of RadEditors, when adding a custom module, e.g.
<telerik:radeditor runat="server" ID="RadEditor1" Height="700px" >
<Modules>
<telerik:EditorModule Name="MyModule" Enabled="true" Visible="true" />
<telerik:EditorModule Name="RadEditorDiagnostics" Enabled="true" Visible="true" />
</Modules>
</telerik:radeditor>
Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their
blog feed now.