Has Text Changed ?

Last post 12-10-2012, 7:38 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  12-10-2012, 1:06 AM 75426

    Has Text Changed ?

    Is there any way of determining if the text in the editor has been changed so that a Save prompt can be shown.
  •  12-10-2012, 7:38 AM 75430 in reply to 75426

    Re: Has Text Changed ?

    Hi Allender,

     

    You can use API CuteEditor_OnChange.

     

    CuteEditor_OnChange

    This event is invoked when the content of Cute Editor is changed.

    Example:

    function CuteEditor_OnChange(editor)
    {
        //when the content be changed..
        document.getElementById("ctl_onchange").innerHTML=editor.id+" changed at "+ new Date().toLocaleTimeString();
    }

     

    Regards,

     

    Ken

View as RSS news feed in XML