Cute editor's setHtml function works after alert

  •  06-26-2008, 10:17 AM

    Cute editor's setHtml function works after alert

    Hi there,
    I am sending data to be edited to another where cute editor is residing.
    I found that
     
    editorEdit = document.getElementById('<% = Editor_Edit.ClientID%>');
    editorEdit.setHTML("hi");   
                   
    these lines in javasctipt doesn't work it gives "object doesn't support this method error'.
     
    instead when i put 
         
    editorEdit = document.getElementById('<% = Editor_Edit.ClientID%>');
    alert('hello world');
    editorEdit.setHTML("hi");  
     
    cute editor works perfectly. How to avoid use of alert?
     
    Filed under:
View Complete Thread