CKEditor 4 Documentation

CKEDITOR.filter.transformationsTools

Files

Singleton containing tools useful for transformation rules.

Defined By

Methods

CKEDITOR.filter.transformationsTools
view source
( element )
Converts the float style to the align attribute if not set. ...

Converts the float style to the align attribute if not set. The style is always removed.

Parameters

CKEDITOR.filter.transformationsTools
view source
( element )
Converts the align attribute to the float style if not set. ...

Converts the align attribute to the float style if not set. The attribute is always removed.

Parameters

CKEDITOR.filter.transformationsTools
view source
( element, styleName, [attrName] )
Converts length in the styleName style to a valid length attribute (like width or height). ...

Converts length in the styleName style to a valid length attribute (like width or height).

Parameters

  • element : CKEDITOR.htmlParser.element
  • styleName : String

    The name of the style that will be converted.

  • attrName : String (optional)

    The name of the attribute into which the style will be converted.

    Defaults to: styleName

CKEDITOR.filter.transformationsTools
view source
( element, attrName, [styleName] )
Converts length in the attrName attribute to a valid CSS length (like width or height). ...

Converts length in the attrName attribute to a valid CSS length (like width or height).

Parameters

  • element : CKEDITOR.htmlParser.element
  • attrName : String

    Name of the attribute that will be converted.

  • styleName : String (optional)

    Name of the style into which the attribute will be converted.

    Defaults to: attrName

CKEDITOR.filter.transformationsTools
view source
( element, style )
Checks whether an element matches a given CKEDITOR.style. ...

Checks whether an element matches a given CKEDITOR.style. The element can be a "superset" of a style, e.g. it may have more classes, but needs to have at least those defined in the style.

Parameters

CKEDITOR.filter.transformationsTools
view source
( element )
Converts width and height styles to attributes. ...

Converts width and height styles to attributes.

Parameters

CKEDITOR.filter.transformationsTools
view source
( element )
Converts width and height attributes to styles. ...

Converts width and height attributes to styles.

Parameters

CKEDITOR.filter.transformationsTools
view source
( element )
Converts the shorthand form of the border style to seperate styles. ...

Converts the shorthand form of the border style to seperate styles.

Parameters

CKEDITOR.filter.transformationsTools
view source
( element )
Converts the shorthand form of the margin style to seperate styles. ...

Converts the shorthand form of the margin style to seperate styles.

Parameters

CKEDITOR.filter.transformationsTools
view source
( el, form )
Transforms an element to a given form. ...

Transforms an element to a given form.

Form may be a:

Parameters