# core/errorattribution/liveeditors

module

<a id="functions">

## Functions

<a id="function-_addLiveContext">

### `_addLiveContext( context ) → void` _(internal)_

Adds a context to the list of the ones error attribution may be asked about.

Adding one twice registers it once, the way adding to a set does. Removal takes one entry, so a second registration would outlive the removal on destroy and a destroyed context would keep being named.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/errorattribution/liveeditors.ts#L85)

#### Parameters

* `context: Context`

#### Returns

* `void`

<a id="function-_addLiveEditor">

### `_addLiveEditor( editor ) → void` _(internal)_

Adds an editor to the list of the ones error attribution may be asked about.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/errorattribution/liveeditors.ts#L37)

#### Parameters

* `editor: Editor`

#### Returns

* `void`

<a id="function-_getLiveContexts">

### `_getLiveContexts() → Iterable<Context>` _(internal)_

The contexts error attribution may be asked about, in the order they were created.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/errorattribution/liveeditors.ts#L113)

#### Returns

* `Iterable<Context>`

<a id="function-_getLiveEditors">

### `_getLiveEditors() → Iterable<Editor>` _(internal)_

The editors error attribution may be asked about, in the order they became ready.

References whose editor has been collected are dropped on the way through. That is the only cleanup there is, and it is enough: the list is read whenever an error is reported, and an entry left behind until then costs one dead reference.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/errorattribution/liveeditors.ts#L65)

#### Returns

* `Iterable<Editor>`

<a id="function-_isLiveContext">

### `_isLiveContext( context ) → boolean` _(internal)_

Whether the context is one of those attribution may name.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/errorattribution/liveeditors.ts#L122)

#### Parameters

* `context: unknown`

#### Returns

* `boolean`

<a id="function-_removeLiveContext">

### `_removeLiveContext( context ) → void` _(internal)_

Removes a context from the list of the ones error attribution may be asked about.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/errorattribution/liveeditors.ts#L98)

#### Parameters

* `context: Context`

#### Returns

* `void`

<a id="function-_removeLiveEditor">

### `_removeLiveEditor( editor ) → void` _(internal)_

Removes an editor from the list of the ones error attribution may be asked about.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-core/src/errorattribution/liveeditors.ts#L46)

#### Parameters

* `editor: Editor`

#### Returns

* `void`

---

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