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#createStyleStackSurrounds the element's children with a stack of
<span>elements, each one having one style originally belonging to the element.Parameters
element : elementfilter : filtereditor : editor[ skipStyles ] : RegExpAll 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#normalizedStylesFilters Word-specific styles for a given element. It may also filter additional styles based on the
editorconfiguration.Parameters
element : elementeditor : editor
since 4.13.0 private
pushStylesLower( element, exceptions, [ wrapText ] ) → BooleanCKEDITOR.plugins.pastetools.filters.common.styles#pushStylesLowerMoves the element styles lower in the DOM hierarchy. If
wrapText==trueand the direct child of an element is a text node, it will be wrapped in a<span>element.Parameters
element : elementexceptions : ObjectAn object containing style names which should not be moved, e.g.
{ background: true }.[ wrapText ] : BooleanWhether 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
BooleanReturns
trueif the styles were successfully moved lower.