Creates editable instances from a list or CSS3 query string of elements. The initial content of the editor is set to the content/value of the replaced element.

Example

<div class="editor first">First Content</textarea>
<div class="editor first">Second Content</textarea>
...
// Create a Textbox.io editor by searching for items with the "editor" class
var editors = textboxio.inlineAll( '.editor' ); // returns an array of 2 editor instances

 

Parameters

elements

String

or

Array

Specify a CSS3 selector representing the elements to be made editable. Note that textarea is not supported in this mode.

or

Specify an array of DOM elements you wish Textbox.io to make editable.

configuration Object (optional)

An optional group of key-value pairs that specify options/settings for the Textbox.io instances you are invoking.

Returns

editor[]

Array

An array of Textbox.io editor instances. Each element matched with textboxio.replaceAll() creates a new instance of Textbox.io, which is then added to the returned array in order.

 

See also