# ModelInsertContentEvent

typedef

Event fired when [`insertContent`](module_engine_model_model-Model.md#function-insertContent) method is called.

The [default action of that method](module_engine_model_model-Model.md#function-insertContent) is implemented as a listener to this event so it can be fully customized by the features.

**Note** The `selectable` parameter for the [`insertContent`](module_engine_model_model-Model.md#function-insertContent) is optional. When `undefined` value is passed the method uses [document selection](module_engine_model_document-ModelDocument.md#member-selection).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/model/model.ts#L1256)

<a id="properties">

## Properties

<a id="member-args">

### `args: [ [ content: ModelItem | ModelDocumentFragment, selectable?: ModelSelection | ModelDocumentSelection, rest: Array<unknown> ] ]`

<a id="member-name">

### `name: 'insertContent'`

<a id="member-return">

### `return: ModelRange`

#### Value

`object`

## Fired by

* [Model#insertContent](module_engine_model_model-Model.md#event-insertContent)

---

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