CKEDITOR.plugins.pastetools.filters.common.styles
Filtering
Properties
-
Namespace containing the styles inliner.
Methods
-
since 4.13.0 private
createStyleStack( element, filter, editor, [ skipStyles ] )
CKEDITOR.plugins.pastetools.filters.common.styles#createStyleStack
Surrounds the element's children with a stack of
<span>
elements, each one having one style originally belonging to the element.Parameters
element : element
filter : filter
editor : editor
[ skipStyles ] : RegExp
All matching style names will not be extracted to the style stack. Defaults to
/margin((?!-)|-left|-top|-bottom|-right)|text-indent|text-align|width|border|padding/i
.
-
since 4.13.0 private
normalizedStyles( element, editor )
CKEDITOR.plugins.pastetools.filters.common.styles#normalizedStyles
Filters Word-specific styles for a given element. It may also filter additional styles based on the
editor
configuration.Parameters
element : element
editor : editor
-
since 4.13.0 private
pushStylesLower( element, exceptions, [ wrapText ] ) → Boolean
CKEDITOR.plugins.pastetools.filters.common.styles#pushStylesLower
Moves the element 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 : element
exceptions : Object
An object containing style names which should not be moved, e.g.
{ background: true }
.[ wrapText ] : Boolean
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 the styles were successfully moved lower.