Add a custom event listener to a Textbox.io editor focus event with editor.events.focus.addlistener()
.
You can detect that an editor has received focus by attaching a callback function to the editor’s focus event.
Example
editor.events.loaded.addListener(callback)
// Add a custom event listener to the editor focus event editor.events.focus.addListener(function() { alert('Editor got focus.'); }); };
Parameters
callback | Function | Function executed when the editor receives focus. |
Returns
No return value.