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

Predicate based filters let you specify a matching function into which all elements passing into (or out of) the editor are passed. This matching function evaluates each element and returns elements that you identify for filtering.

Elements identified and returned by the matching function are passed as an array to a callback function, which operates on the array of identified elements. These operations can include, but are not limited to, filtering, element transformation, etc.

Methods

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

See Also

Filtering Content