Remove a custom event listener on a Textbox.io editor change event with editor.events.change.removeListener().
This API was introduced in Textbox.io release 2.3.0
You may remove any custom event listeners by passing the callback function used to specify the event with .addListener() to .removeListener().
Example
editor.events.change.removeListener(callback)
var notify = function () {
alert('Textbox.io editor content has changed.');
};
// Add a custom event listener to the editor change event
editor.events.change.addListener(notify);
// Remove a custom event listener
editor.events.change.removeListener(notify);
Parameters
callback | Function | Function used to specify the custom event listener that should be removed. |
Returns
No return value.