CKEditor 4 Documentation

CKEDITOR.plugins.pastefromword.styles

Defined By

Properties

CKEDITOR.plugins.pastefromword.styles
view source
: Objectprivate

Namespace containing the styles inliner.

Namespace containing the styles inliner.

Available since: 4.7.0

Defined By

Methods

CKEDITOR.plugins.pastefromword.styles
view source
( element, filter, editor, [skipStyles] )private
Surrounds the element's children with a stack of spans, each one having one style originally belonging to the element. ...

Surrounds the element's children with a stack of spans, each one having one style originally belonging to the element.

Parameters

CKEDITOR.plugins.pastefromword.styles
view source
( element, editor )private
Filters Word-specific styles for a given element. ...

Filters Word-specific styles for a given element. Also might filter additional styles based on the editor configuration.

Parameters

CKEDITOR.plugins.pastefromword.styles
view source
( element, exceptions, [wrapText] ) : Boolean
Moves the element's styles lower in the DOM hierarchy. ...

Moves the element's styles lower in the DOM hierarchy. If wrapText==true and the direct child of an element is a text node it will be wrapped in a span element.

Parameters

  • element : CKEDITOR.htmlParser.element
  • exceptions : Object

    An object containing style names which should not be moved, e.g. { background: true }.

  • wrapText : Boolean (optional)

    Whether a direct text child of an element should be wrapped into a span tag so that the styles can be moved to it.

    Defaults to: false

Returns

  • Boolean

    Returns true if styles were successfully moved lower.