# ClipboardInputEventData

interface

The value of the [event-paste](module_engine_view_document-ViewDocument.md#event-paste), [event-copy](module_engine_view_document-ViewDocument.md#event-copy) and [event-cut](module_engine_view_document-ViewDocument.md#event-cut) events.

In order to access the clipboard data, use the `dataTransfer` property.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-clipboard/src/clipboardobserver.ts#L163)

<a id="properties">

## Properties

<a id="member-content">

### `content: string | ViewDocumentFragment`

The content of clipboard input. Defaults to `text/html`. Falls-back to `text/plain`.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-clipboard/src/clipboardobserver.ts#L190)

<a id="member-dataTransfer">

### `dataTransfer: ViewDataTransfer`

Data transfer instance.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-clipboard/src/clipboardobserver.ts#L168)

<a id="member-extraContent">

### `extraContent?: unknown`

Custom data stored by the `clipboardInput` event handlers. Custom properties of this object can be defined and use to pass parameters between listeners. Content of this property is passed to the `inputTransformation` event.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-clipboard/src/clipboardobserver.ts#L196)

<a id="member-method">

### `method: 'drop' | 'paste'`

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

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-clipboard/src/clipboardobserver.ts#L173)

<a id="member-target">

### `target: ViewElement`

The tree view element representing the target.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-clipboard/src/clipboardobserver.ts#L178)

<a id="member-targetRanges">

### `targetRanges: Array<ViewRange> | null`

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).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-clipboard/src/clipboardobserver.ts#L185)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
