# ImageInsertConfig

interface

The configuration of the image insert dropdown panel view. Used by the image insert feature in the `@ckeditor/ckeditor5-image` package.

```typescript
ClassicEditor
	.create( {
		attachTo: editorElement,
		image: {
			insert: {
				... // settings for "insertImage" view goes here
			}
		}
	} )
	.then( ... )
	.catch( ... );
```

See [all editor options](module_core_editor_editorconfig-EditorConfig.md).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-image/src/imageconfig.ts#L463)

<a id="properties">

## Properties

<a id="member-integrations">

### `integrations?: Array<string>`

The image insert panel view configuration contains a list of [`ImageInsert`](module_image_imageinsert-ImageInsert.md) integrations.

The option accepts string tokens.

* for predefined integrations, we have 3 special strings: `upload`, `url`, and `assetManager`.
* for custom integrations, each string should be a name of the integration registered by the [`ImageInsertUI#registerIntegration()`](module_image_imageinsert_imageinsertui-ImageInsertUI.md#function-registerIntegration).

```typescript
// Add `upload`, `assetManager` and `url` integrations.
const imageInsertConfig = {
	insert: {
		integrations: [
			'upload',
			'assetManager',
			'url'
		]
	}
};
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-image/src/imageconfig.ts#L488)

Defaults to `[ 'upload', 'assetManager', 'url' ]`

<a id="member-type">

### `type?: 'auto' | 'block' | 'inline'`

This option allows to override the image type used by the [`InsertImageCommand`](module_image_image_insertimagecommand-InsertImageCommand.md) when the user inserts new images into the editor content. By default, all images inserted into the editor will be block if [`ImageBlock`](module_image_imageblock-ImageBlock.md) is loaded. To let the editor decide the image type, choose `'auto'`.

Available options are:

* `'block'` – all images inserted into the editor will be block (requires the [`ImageBlock`](module_image_imageblock-ImageBlock.md) plugin),
* `'inline'` – all images inserted into the editor will be inline (requires the [`ImageInline`](module_image_imageinline-ImageInline.md) plugin),
* `'auto'` – the editor will choose the optimal image type based on the context of the insertion and availability of plugins.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-image/src/imageconfig.ts#L503)

Defaults to `'block'`

---

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