# ContextWatchdogItemConfiguration

interface

The watchdog item configuration interface.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-watchdog/src/contextwatchdog.ts#L602)

<a id="properties">

## Properties

<a id="member-config">

### `config: EditorConfig`

An editor configuration.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-watchdog/src/contextwatchdog.ts#L640)

<a id="member-creator">

### `creator: EditorWatchdogCreatorFunction`

A function that initializes the item (the editor). The function takes the editor configuration and should return a promise. For example: `config => ClassicEditor.create( config )`.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-watchdog/src/contextwatchdog.ts#L618)

<a id="member-destructor">

### `destructor?: ( editor: Editor ) => Promise<unknown>`

A function that destroys the item instance (the editor). The function takes an item and should return a promise. For example: `editor => editor.destroy()`

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-watchdog/src/contextwatchdog.ts#L624)

<a id="member-id">

### `id: string`

id A unique item identificator.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-watchdog/src/contextwatchdog.ts#L607)

<a id="member-sourceElementOrData">

### `sourceElementOrData?: string | HTMLElement` _(deprecated)_

The source element or data that will be passed as the first argument to the `Editor.create()` method.

When not provided, the watchdog will use config-based creator mode, passing only the [`config`](#member-config) to the editor creator.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-watchdog/src/contextwatchdog.ts#L635)

<a id="member-type">

### `type: 'editor'`

The type of the item to create. At the moment, only `'editor'` is supported.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-watchdog/src/contextwatchdog.ts#L612)

---

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