Skip to content

ckeditor5-elements / ElementMatcher

Type Alias: ElementMatcher ​

ts
type ElementMatcher = string | ((element) => boolean);

Matches model elements: the name of a model element (e.g. 'imageBlock'), or a function that returns whether it is for the given element (e.g. element => element.hasAttribute('linkHref')).