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.
|Creates a filter when content is added to the editor with: |
|Creates a filter when content is requested from the editor with: |