How to use getHtml() and setHtml() function of the CuteEditor

  •  08-29-2006, 9:54 AM

    How to use getHtml() and setHtml() function of the CuteEditor

     
    Hello
     
    Problem is that when I Get the Data on Tab events (e.g. Normal,Html,Preview) using getHtml() function  then I write code using setHtml() function to any one of the tab event of the Cute Editor then I unable to write.
     
    Here is the code
     
    /******************************************************************************************/ 
    var editor = document.getElementById('<%=JobEditor.ClientID%>');
    var strEditorData = editor.getHTML();
    editor.setHTML(strEditorData.substring(0,10));
    /******************************************************************************************/ 
     
    Software Engineer
    ITSEC
     
    Shammam Khan
     
     
View Complete Thread