Remove a custom event listener on a Textbox.io editor's content dirty event with editor.events.dirty.removeListener().
You may remove any custom event listeners by passing the callback function used to specify the event with .addListener() to .removeListener().
Example
editor.events.loaded.addListener(callback)
var notify = function () {
alert('The editor content is now dirty.');
};
// Add a custom event listener to the editor's content dirty event
editor.events.dirty.addListener(notify);
// Remove a custom event listener
editor.events.dirty.removeListener(notify);
Parameters
callback | Function | Function used to specify the custom event listener that should be removed. |
Returns
No return value.