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

selector is a grouping of methods related to selector based content filtering for a Textbox.io editor instance. 

Selector based filters let you identify the elements to be filtered by specifying a CSS3 selector. Elements matching the selector are added to an array which is then passed to a callback function. The callback function then operates on the element array.

Methods

editor.filters.selector.addInput()Creates a filter when content is added to the editor with: textboxio.replace(), editor.content.set(), editor.content.insertHtmlAtCursor().
editor.filters.selector.addOutput()Creates a filter when content is requested from the editor with: editor.content.get().

See Also

Filtering Content

  • No labels