Typedef

ClipboardContentInsertionEvent (clipboard)

@ckeditor/ckeditor5-clipboard/src/clipboardpipeline

typedefobject

Fired with the content, dataTransfer, method, and targetRanges properties:

  • The content which comes from the clipboard (was pasted or dropped) should be processed in order to be inserted into the editor.
  • The dataTransfer object is available in case the transformation functions need access to the raw clipboard data.
  • The method indicates the original DOM event (for example 'drop' or 'paste').
  • The targetRanges property is an array of view ranges (it is available only for 'drop').

Event handlers can modify the content according to the final insertion position.

It is a part of the clipboard input pipeline.

Note: You should not stop this event if you want to change the input data. You should modify the content property instead.

Filtering

Properties

  • args : tuple

  • name : 'contentInsertion'

Fired by