Re: No More JavaScript API in 6.0??

  •  05-15-2007, 12:52 PM

    Re: No More JavaScript API in 6.0??

    i've been using a popup window to populate my content in the textarea of the Editor.  So you can use the <%=editor.ClientID%>, but it doesn't help you if you're trying to access the CuteEditor from another page (or popup window).  So  you can still use the javascript API, but instead of using :
     
    var editor1 = obj_Editor1;
     
    use
     
    var editor1 = CE_Editor1_ID;
     
     
    Example for my situation:
     
    Old version (5.2) was:
    window.opener.obj_Editor1.editdoc.body.innerHTML = txt; 
     
    New version (6.0) is:
    window.opener.CE_Editor1_ID.setHTML(txt);

     
     
    rock on... love 6.0!!
View Complete Thread