Class

MSWordNormalizer (paste-from-office/normalizers)

@ckeditor/ckeditor5-paste-from-office/src/normalizers/mswordnormalizer

class

Normalizer for the content pasted from Microsoft Word.

Filtering

Properties

  • document : Document

    readonly

Methods

  • constructor( document )

    Creates a new MSWordNormalizer instance.

    Parameters

    document : Document

    View document.

  • 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