I am getting this error when loading the asp.net page with RadEditor on it.
How to fix this?
2 Answers, 1 is accepted
0
Rumen
Telerik team
answered on 29 Aug 2012, 10:26 AM
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.
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.