CKEditor 4 Documentation

CKEDITOR.htmlParser.filterRulesGroup

Files

Class grouping filter rules for one subject (like element or attribute names).

Defined By

Properties

CKEDITOR.htmlParser.filterRulesGroup
view source
: Object[]readonly
Array of objects containing rule, priority and options. ...

Array of objects containing rule, priority and options.

Defaults to: []

Defined By

Methods

CKEDITOR.htmlParser.filterRulesGroup
view source
( rule, priority, options )
Adds specified rule to this group. ...

Adds specified rule to this group.

Parameters

  • rule : Function/Array

    Function for function based rule or [ pattern, replacement ] array for rule applicable to names.

  • priority : Number
  • options : Object
CKEDITOR.htmlParser.filterRulesGroup
view source
( rules, priority, options )
Adds specified rules to this group. ...

Adds specified rules to this group.

Parameters

  • rules : Array

    Array of rules - see add.

  • priority : Number
  • options : Object
CKEDITOR.htmlParser.filterRulesGroup
view source
( currentValue ) : CKEDITOR.htmlParser.node/CKEDITOR.htmlParser.fragment/String
Executes this rules group on given value. ...

Executes 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

Returns

CKEDITOR.htmlParser.filterRulesGroup
view source
( currentName ) : String
Executes this rules group on name. ...

Executes this rules group on name. Applicable only if filter rules for names were added.

Parameters

  • currentName : String

    The name to be filtered.

Returns

  • String

    Filtered name.

CKEDITOR.htmlParser.filterRulesGroup
view source
( priority ) : Number
Finds an index at which rule with given priority should be inserted. ...

Finds an index at which rule with given priority should be inserted.

Parameters

  • priority : Number

Returns

  • Number

    Index.