# ui/toolbar/normalizetoolbarconfig

module

<a id="functions">

## Functions

<a id="function-normalizeToolbarConfig">

### `normalizeToolbarConfig( config ) → object`

Normalizes the toolbar configuration (`config.toolbar`), which:

* may be defined as an `Array`:

```
toolbar: [ 'heading', 'bold', 'italic', 'link', ... ]
```

* or an `Object`:

```
toolbar: {
	items: [ 'heading', 'bold', 'italic', 'link', ... ],
	removeItems: [ 'bold' ],
	...
}
```

* or may not be defined at all (`undefined`)

and returns it in the object form.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-ui/src/toolbar/normalizetoolbarconfig.ts#L38)

#### Parameters

* `config: ToolbarConfig | undefined`

  The value of `config.toolbar`.

#### Returns

* `object`

  A normalized toolbar config object.

---

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