Editor.ClientEvents.TextChanged = "Editor_TextChanged"
Editor.ClientEvents.TextChanged = "Editor_TextChanged";
// The client event 'TextChanged' takes two parameters sender and e // sender is the object which is raising the event // e is the EventArgs //ID of the editor raising the event is "Editor" function Editor_TextChanged(sender, e) { //Gets the reference of the editor var editor = $find("Editor"); //Gets the text in the editor var text = editor.get_text(); }