ClipboardInputEventData
The value of the event-paste, event-copy and event-cut events.
In order to access the clipboard data, use the dataTransfer property.
Properties
content : string | ViewDocumentFragmentmodule:clipboard/clipboardobserver~ClipboardInputEventData#contentThe content of clipboard input. Defaults to
text/html. Falls-back totext/plain.module:clipboard/clipboardobserver~ClipboardInputEventData#dataTransferData transfer instance.
extraContent : unknown | undefinedmodule:clipboard/clipboardobserver~ClipboardInputEventData#extraContentCustom data stored by the
clipboardInputevent handlers. Custom properties of this object can be defined and use to pass parameters between listeners. Content of this property is passed to theinputTransformationevent.method : 'drop' | 'paste'module:clipboard/clipboardobserver~ClipboardInputEventData#methodWhether the event was triggered by a paste or a drop operation.
module:clipboard/clipboardobserver~ClipboardInputEventData#targetThe tree view element representing the target.
targetRanges : Array<ViewRange> | nullmodule:clipboard/clipboardobserver~ClipboardInputEventData#targetRangesThe ranges which are the target of the operation (usually – into which the content should be inserted). If the clipboard input was triggered by a paste operation, this property is not set. If by a drop operation, then it is the drop position (which can be different than the selection at the moment of the drop).