Get ClientID From editor Object

Last post 03-12-2014, 9:35 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  03-11-2014, 10:33 AM 80057

    Get ClientID From editor Object

     I know I can get the editor when I know the ClientID of the control by using the following command:

     

    var editor1 = document.getElementById('<%= Editor1.ClientID%>').editor;

     

    However, I need to get the ClientID from an editor object that I already have.  Is that possible?

     

    Thanks,

    Steve

  •  03-12-2014, 9:35 AM 80068 in reply to 80057

    Re: Get ClientID From editor Object

    hi fulles,

     

    you can get the editor id by the code below

     

    var editor1 = document.getElementById('<%= Editor1.ClientID%>').editor;

    var editorid = editor1._config.uniqueid; 

     

    Regards,

     

    Ken 

View as RSS news feed in XML