Custom Module & disabled rad editor

2 posts, 0 answers
  1. Justin
    Justin avatar
    13 posts
    Member since:
    Feb 2011

    Posted 11 Jul 2012 Link to this post

    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? 
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 16 Jul 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top