Page tree
Skip to end of metadata
Go to start of metadata

The change event is triggered when the editor content changes as defined by when an undo save point is created. These points are throttled to happen a few seconds after the user has stopped typing, or when the enter key is pressed.

This API was introduced in Textbox.io release 2.3.0

Methods

editor.events.change.addListener()Binds a function to an editor instance's change event.
editor.events.change.removeListener()Removes a function from an editor instance's change event.
Example
editor.events.change.addListener(function () {
	// do something
	console.log('The editor content has changed')
});
  • No labels