Version

ValueChanged Property (TextEditorClientEvents)

Gets sets name of javascript function which is called after value was changed.
Syntax
'Declaration
 
Public Property ValueChanged As String
public string ValueChanged {get; set;}
Example
Editor.ClientEvents.ValueChanged = "Editor_ValueChanged"
Editor.ClientEvents.ValueChanged = "Editor_ValueChanged";
// The client event 'ValueChanged' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the TextEditorValueChangedEventArgs

//ID of the editor raising the event is "Editor"

function Editor_ValueChanged(sender, e) {

    //Gets the old value in the editor
    var oldValue = e.get_oldValue();

    //Gets the new value in the editor
    var newValue = e.get_value();

    window.status = "Old Value : " + oldValue + " ; New Value : " + newValue;
}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also