ClipboardInputEventData
interface
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 : ViewDocumentFragment | undefined
module:clipboard/clipboardobserver~ClipboardInputEventData#content
The content of clipboard input.
-
module:clipboard/clipboardobserver~ClipboardInputEventData#dataTransfer
Data transfer instance.
-
method : 'drop' | 'paste'
module:clipboard/clipboardobserver~ClipboardInputEventData#method
Whether the event was triggered by a paste or a drop operation.
-
module:clipboard/clipboardobserver~ClipboardInputEventData#target
The tree view element representing the target.
-
targetRanges : null | Array<ViewRange>
module:clipboard/clipboardobserver~ClipboardInputEventData#targetRanges
The 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).