Textbox.io 2.x Documentation : editor.events.loaded.removeListener()

Remove a custom event listener on a Textbox.io editor loaded event with editor.events.loaded.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.removeListener(callback)
var notify = function () {
	 alert('Textbox.io has loaded.');
};
 
// Add a custom event listener to the editor loaded event
editor.events.loaded.addListener(notify);
 
// Remove a custom event listener
editor.events.loaded.removeListener(notify);

Parameters

callbackFunctionFunction used to specify the custom event listener that should be removed.

Returns

No return value.