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

Textbox.io Editor instances are represented by editor. Instances are created by replace, replaceAll, inline, and inlineAll.  You can also get editor instances by calling the get or getActiveEditor() methods.

The editor instance allows you to interact with a specific editor's content and events.

Properties

contentGroups methods relating to an editor instance's content.
eventsGroups methods relating to an editor instance's event model.
filtersGroups properties relating to an editor instance's content filters.
macrosGroups properties relating to an editor instance's macros.
mode

Provides methods to set/get the editor's mode to either code view or design view.
See HTML Code View for more information.

Methods

elementReturns the editor container DOM element.
focusFocus a Textbox.io editor instance.
message
Display a message banner in the editor UI.
restoreRemoves this Textbox.io Editor instance from its DOM element.

Note

get returns arrays of editor instances. The examples in this section assume a single editor - the first editor instance in the returned array.

// Retrieve the first editor instance in the returned array
var editors = textboxio.get('textarea');
var editor = editors[0];

  • No labels