ClipboardContentInsertionData
interface
The data of 'contentInsertion' event.
Properties
-
module:clipboard/clipboardpipeline~ClipboardContentInsertionData#content
The content to be inserted into the editor. Read more about the clipboard pipelines in the clipboard deep-dive guide.
-
module:clipboard/clipboardpipeline~ClipboardContentInsertionData#dataTransfer
The data transfer instance.
-
method : 'drop' | 'paste'
module:clipboard/clipboardpipeline~ClipboardContentInsertionData#method
Whether the event was triggered by a paste or a drop operation.
-
resultRange : ModelRange | undefined
module:clipboard/clipboardpipeline~ClipboardContentInsertionData#resultRange
The result of the
model.insertContent()
call (inserted by the event handler at a low priority). -
sourceEditorId : null | string
module:clipboard/clipboardpipeline~ClipboardContentInsertionData#sourceEditorId
The ID of the editor instance from which the content was copied.
-
targetRanges : null | Array<ViewRange>
module:clipboard/clipboardpipeline~ClipboardContentInsertionData#targetRanges
The target drop ranges.