AJAX auto-save

Last post 01-09-2014, 12:09 PM by tmillerwyo. 2 replies.
Sort Posts: Previous Next
  •  01-07-2014, 9:31 AM 78702

    AJAX auto-save

     I'd like to write an incremental auto-save function in Javascript for CuteEditor. I've done this before with a TextArea tag (and saved the text value), but need the the text's HTML-value of the CuteEditor. Anyone have any ideas?
  •  01-07-2014, 11:15 PM 78713 in reply to 78702

    Re: AJAX auto-save

    Dear customer,

     

    Please refer to http://cutesoft.net/example/JavaScript-API.aspx

     

    The following js is the demo to get CuteEditor Html

    1. function getHTML()  
    2. {  
    3.     // get the cute editor instance  
    4.     var editor1 = document.getElementById('CE_ContentPlaceHolder1_Editor1_ID');  
    5.                   
    6.     // Get the editor HTML  
    7.     document.getElementById("myTextArea").value = editor1.getHTML();  
    8. }  
     

     

    Regards,

    Jeff 

  •  01-09-2014, 12:09 PM 78729 in reply to 78713

    Re: AJAX auto-save

     Thanks, big help. I didn't want to have to translate the raw data.
View as RSS news feed in XML