Interface

Normalizer (paste-from-office)

@ckeditor/ckeditor5-paste-from-office/src/normalizer

interface

Interface defining a content transformation pasted from an external editor.

Normalizers are registered by the PasteFromOffice plugin and run on inputTransformation event. They detect environment-specific quirks and transform it into a form compatible with other CKEditor features.

Filtering

Methods

  • execute( data ) → void

    Executes the normalization of a given data.

    Parameters

    data : NormalizerData

    Returns

    void
  • isActive( htmlString ) → boolean

    Must return true if the htmlString contains content which this normalizer can transform.

    Parameters

    htmlString : string

    Returns

    boolean