Remove a custom event listener on a Textbox.io editor focus event with editor.events.focus.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('Textbox.io got focus.'); }; // Add a custom event listener to the editor focus event editor.events.focus.addListener(notify); // Remove a custom event listener editor.events.focus.removeListener(notify);
Parameters
callback | Function | Function used to specify the custom event listener that should be removed. |
Returns
No return value.