# AddRootEvent

typedef

Fired whenever a root is [added or re-added](module_editor-multi-root_multirooteditor-MultiRootEditor.md#function-addRoot:ROOT_CONFIG) to the editor model.

Use this event to [create a DOM editable](module_editor-multi-root_multirooteditor-MultiRootEditor.md#function-createEditable:OPTIONS) for the added root and append the DOM element in a desired place in your application.

The event is fired after all changes from a given batch are applied. The event is not fired, if the root was added and detached in the same batch.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-editor-multi-root/src/multirooteditor.ts#L1359)

<a id="properties">

## Properties

<a id="member-args">

### `args: [ root: ModelRootElement ]`

<a id="member-name">

### `name: 'addRoot'`

#### Value

`object`

## Fired by

* [MultiRootEditor#addRoot](module_editor-multi-root_multirooteditor-MultiRootEditor.md#event-addRoot)

---

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