Report an issue
Class

CKEDITOR.filter.transformationsTools

class singleton

Singleton containing tools useful for transformation rules.

Filtering

Methods

  • alignmentToAttribute( element )

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

    Parameters

    element : element
  • alignmentToStyle( element )

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

    Parameters

    element : element
  • lengthToAttribute( element, styleName, [ attrName ] )

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

    Parameters

    element : element
    styleName : String

    The name of the style that will be converted.

    [ attrName ] : String

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

    Defaults to styleName

  • lengthToStyle( element, attrName, [ styleName ] )

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

    Parameters

    element : element
    attrName : String

    Name of the attribute that will be converted.

    [ styleName ] : String

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

    Defaults to attrName

  • matchesStyle( element, 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

    element : element
    style : style
  • sizeToAttribute( element )

    Converts width and height styles to attributes.

    Parameters

    element : element
  • sizeToStyle( element )

    Converts width and height attributes to styles.

    Parameters

    element : element
  • splitBorderShorthand( element )

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

    Parameters

    element : element
  • splitMarginShorthand( element )

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

    Parameters

    element : element
  • transform( el, form )

    Transforms an element to a given form.

    Form may be a:

    Parameters

    el : element
    form : style | String