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