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

Custom Module & disabled rad editor

1 Answer 29 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 2
Justin asked on 11 Jul 2012, 09:10 PM
I have a custom module that works fine if my rad editor starts "enabled".  On pages where the default state of the editor is disabled until the user puts the form into edit mode, the module just doesn't show up.  If I just change the initial state of the editor to enabled it works fine.  Is there something I need to be registering when the page mode is changed to edit to ensure that my custom module will show up? 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Jul 2012, 01:30 PM
Hi,

You can wrap the JavaScript code of the module inside the following if check:

if(typeof($telerik) != "undefined") {
 //put your code here
}

Therefore when the RadEditor's client object is not yet created when RadEditor is invisible the modules code will not throw errors.

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.
Tags
Editor
Asked by
Justin
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or