Page tree
Skip to end of metadata
Go to start of metadata

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



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



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.
  • No labels