Capture OnChange or TextChanged events?

Last post 01-10-2013, 12:27 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  01-10-2013, 4:53 AM 76616

    Capture OnChange or TextChanged events?

    Hi 

    We've previously used CuteSoft Editor for ASP.NET v1 and I'm trying to migrate the functionality to RichTextEditor for ASP.NET v4

    I've got most of it working except for the ability to capture when text is changed within the editor.

     

    Previously we simply had some BLOCKED SCRIPT

     function CuteEditor_OnChange(editor) {

    ...

    }

     

    The new component is registered as RichTextEditor so I had assumed the following might work but it didn't:

    function RichTextEditor_OnChange(editor) {

    ...

    }

     

    In researching further, I note that there is no mention of OnChange as an event in the class documentation but there is a TextChanged event but I'm afraid it is not obvious to me how to use this.

     

    Any guidance would be appreciated.

    Regards

    Evahn 

     

  •  01-10-2013, 12:27 PM 76619 in reply to 76616

    Re: Capture OnChange or TextChanged events?

    Hi ederkley,

     

    The new API name "RichTextEditor_OnTextChanged"

     

    This event is raised if the content of RichTextEditor is changed by either a programmatic modification or user interaction.

    Example:

    <script type='text/javascript'>
    function RichTextEditor_OnTextChanged(loader)
    {
    }
    </script>

    More details please refer to http://www.richtexteditor.com/document/scr/html/global-events.htm

     

    Regards,

     

    Ken 

View as RSS news feed in XML