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 )

    Executes the normalization of a given data.

    Parameters

    data : Object

    object obtained from inputTransformation event.

  • isActive( htmlString ) → Boolean

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

    Parameters

    htmlString : String

    full content of dataTransfer.getData( 'text/html' )

    Returns

    Boolean