Class

GoogleDocsNormalizer (paste-from-office/normalizers)

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

class

Normalizer for the content pasted from Google Docs.

Filtering

Properties

  • document : Document

    readonly

Methods

  • constructor( document )

    Creates a new GoogleDocsNormalizer 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