# DeleteEventData

interface

Information about a DOM event in context of the [`ViewDocument`](module_engine_view_document-ViewDocument.md). It wraps the native event, which usually should not be used as the wrapper contains additional data (like key code for keyboard events).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-typing/src/deleteobserver.ts#L236)

<a id="properties">

## Properties

<a id="member-direction">

### `direction: 'forward' | 'backward'`

The direction in which the deletion should happen.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-typing/src/deleteobserver.ts#L241)

<a id="member-document">

### `document: ViewDocument` _(readonly)_

The instance of the document.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/observer/domeventdata.ts#L32)

<a id="member-domEvent">

### `domEvent: InputEvent` _(readonly)_

The DOM event.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/observer/domeventdata.ts#L37)

<a id="member-domTarget">

### `domTarget: HTMLElement` _(readonly)_

The DOM target.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/observer/domeventdata.ts#L42)

<a id="member-selectionToRemove">

### `selectionToRemove?: ViewSelection | ViewDocumentSelection`

View selection which content should be removed. If not set, current selection should be used.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-typing/src/deleteobserver.ts#L258)

<a id="member-sequence">

### `sequence: number`

A number describing which subsequent delete event it is without the key being released. If it's 2 or more it means that the key was pressed and hold.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-typing/src/deleteobserver.ts#L252)

<a id="member-target">

### `target: ViewElement` _(readonly)_

The tree view element representing the target.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/observer/domeventdata.ts#L61)

<a id="member-unit">

### `unit: 'selection' | 'character' | 'codePoint' | 'word'`

The "amount" of content that should be deleted.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-typing/src/deleteobserver.ts#L246)

<a id="member-view">

### `view: EditingView` _(readonly)_

Instance of the view controller.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/observer/domeventdata.ts#L27)

<a id="methods">

## Methods

<a id="function-preventDefault">

### `preventDefault() → void` _(inherited)_

Prevents the native's event default action.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/observer/domeventdata.ts#L68)

#### Returns

* `void`

<a id="function-stopPropagation">

### `stopPropagation() → void` _(inherited)_

Stops native event propagation.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/observer/domeventdata.ts#L75)

#### Returns

* `void`

---

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