Textbox.io 2.x Documentation : getActiveEditor

Retrieve the last active editor (the editor that was last given focus) using getActiveEditor()

Example

 

textboxio.getActiveEditor()
// Retrieve the last editor used
var activeEditor = textboxio.getActiveEditor();

Returns

textboxio.editorObject

The last active editor instance.

  • If no editor is active: returns the editor last given focus.
  • If no editors have been focused: returns the first editor created.
  • If no editor has been created: returns null.
  • If the active editor is removed: returns null until another editor is given focus.