Re: Ajax Functionality

  •  02-22-2011, 10:26 AM

    Re: Ajax Functionality

    Dear ASPMan,
     
    You can replace <%=Editor1.ClientID%> with a string, please refer to the following snippet:
     
    <script language="JavaScript" type="text/javascript" >
           function getHTML() {
               // get the cute editor instance
               var editor1 = document.getElementById('CE_Editor1_ID');

               // Get the editor HTML
               document.getElementById("myTextArea").value = editor1.getHTML();
           }

           function setHTML() {
               // get the cute editor instance
               var editor1 = document.getElementById('CE_Editor1_ID');

               // Set the editor
               editor1.setHTML(document.getElementById("myTextArea").value);
           }
    Thank you for asking
     
View Complete Thread