Sign up (with export icon)

PasteFromOfficeNormalizer

Api-interface icon 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.

Methods

  • Chevron-right icon

    execute( data ) → void

    Executes the normalization of a given data.

    Parameters

    data : PasteFromOfficeNormalizerData

    Returns

    void
  • Chevron-right icon

    isActive( htmlString ) → boolean

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

    Parameters

    htmlString : string

    Returns

    boolean