Interface

ClipboardContentInsertionData (clipboard)

@ckeditor/ckeditor5-clipboard/src/clipboardpipeline

interface

The data of 'contentInsertion' event.

Filtering

Properties

  • content : DocumentFragment

    The content to be inserted into the editor. Read more about the clipboard pipelines in the clipboard deep-dive guide.

  • dataTransfer : DataTransfer

    The data transfer instance.

  • method : 'drop' | 'paste'

    Whether the event was triggered by a paste or a drop operation.

  • resultRange : Range | undefined

    The result of the model.insertContent() call (inserted by the event handler at a low priority).

  • targetRanges : null | Array<Range>

    The target drop ranges.