CKEDITOR.htmlParser.filterRulesGroup
class
Class grouping filter rules for one subject (like element or attribute names).
Filtering
Properties
Methods
add( rule, priority, options )CKEDITOR.htmlParser.filterRulesGroup#addAdds specified rule to this group.
Parameters
rule : Function | ArrayFunction for function based rule or [ pattern, replacement ] array for rule applicable to names.
priority : Numberoptions : Object
addMany( rules, priority, options )CKEDITOR.htmlParser.filterRulesGroup#addManyAdds specified rules to this group.
Parameters
rules : ArrayArray of rules - see add.
priority : Numberoptions : Object
exec( currentValue ) → node | fragment | StringCKEDITOR.htmlParser.filterRulesGroup#execExecutes this rules group on given value. Applicable only if function based rules were added.
All arguments passed to this function will be forwarded to rules' functions.
Parameters
currentValue : node | fragment | StringThe value to be filtered.
Returns
node | fragment | StringFiltered value.
execOnName( currentName ) → StringCKEDITOR.htmlParser.filterRulesGroup#execOnNameExecutes this rules group on name. Applicable only if filter rules for names were added.
Parameters
currentName : StringThe name to be filtered.
Returns
StringFiltered name.
findIndex( priority ) → NumberCKEDITOR.htmlParser.filterRulesGroup#findIndexFinds an index at which rule with given priority should be inserted.
Parameters
priority : Number
Returns
NumberIndex.