Report an issue
Class

CKEDITOR.plugins.copyformatting

classsingletonsince 4.6.0

Filtering

Properties

  • breakOnElements : Array

    An array of elements on which extracting formatting should be stopped. If Copy Formatting reaches an element from the array, it ends going up the document tree and fetching the element parents' styles.

    Defaults to ['ul', 'ol', 'table']

  • elementsForInlineTransform : Array

    An array of elements that will be transformed into inline styles while applying formatting to the plain text context, e.g. trying to apply styles from the <li> element (<li style="font-size: 24px;">) to a regular paragraph will cause changing the <li> element into a corresponding <span> element (<span style="font-size: 24px;">).

    Defaults to ['li']

  • excludedAttributes : Array

    An array of attributes that should be excluded from extracted styles.

    Defaults to ['id', 'style', 'href', 'data-cke-saved-href', 'dir']

  • excludedAttributesFromInlineTransform : Array

    An array of attributes to be excluded while transforming styles from elements inside elementsForInlineTransform into <span> elements with styles (e.g. when applying these styles to text context).

    Defaults to ['value', 'type']

  • excludedElementsFromInlineTransform : Array

    An array of elements that will be excluded from the transformation while applying formatting to the plain text context.

    Defaults to ['table', 'thead', 'tbody', 'ul', 'ol']

  • inlineBoundary : Array

    An array of block boundaries that should be always transformed into inline elements with styles, e.g. <div style="font-size: 24px;" class="important"> becomes <span style="font-size: 24px;" class="important">.

    Defaults to ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'div']

  • preservedElements : Array

    An array of elements which should not be deleted when removing old styles from the current selection. Instead the styles are stripped from the elements, preserving the elements themselves, e.g. <ul style="font-size: 24px" class="important"> becomes <ul>.

    Defaults to ['ul', 'ol', 'li', 'td', 'th', 'tr', 'thead', 'tbody', 'table']

  • private

    _initialKeystrokePasteCommand : String

    Stores the name of the command (if any) initially bound to the keystroke used for format applying (CKEDITOR.config.copyFormatting_keystrokePaste), to restore it after copy formatting is deactivated.

Methods