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

RadEditorDiagnostics is not defined

2 Answers 30 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 28 Aug 2012, 02:12 PM
I am getting this error when loading the asp.net page with RadEditor on it.
How to fix this?

2 Answers, 1 is accepted

Sort by
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.

<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.
0
Alexander
Top achievements
Rank 1
answered on 07 Sep 2012, 09:23 AM
All of sudden, this error did not appear anymore. But right only it happens again - I will re-check, keeping in mind your reply. Thanks! :)
Tags
Editor
Asked by
Alexander
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Alexander
Top achievements
Rank 1
Share this question
or