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

Retrieve editor instances using get(). Note that you must pass a CSS3 selector identifying original elements that have been replaced by Textbox.io, in the same manner as replace and replaceAll(). The elements returned by the selector are compared against the active editors, and where an element has been replaced by an editor that editor is returned.

Example

 

textboxio.get(selector)
// Retrieve all editors whose original elements have the css class 'alpha'
var editors = textboxio.get( '.alpha' );
 
//  Identify the first editor in the returned array.
var editor = editors[0];

Parameters

selectorStringSpecify a CSS3 selector representing the element or elements that contain Textbox.io editors.

Returns

textboxio.editorArray

An array of Textbox.io editor instances

  • No labels