---
url: /api/renderers/tinymce/src/interfaces/LayoutsPluginOptions.md
---
[pantoken-root](../../../../index.md) / [renderers/tinymce/src](../index.md) / LayoutsPluginOptions

# Interface: LayoutsPluginOptions

Options for [createLayoutsPlugin](../functions/createLayoutsPlugin.md).

## Properties

### layouts?

> `optional` **layouts?**: readonly [`PageLayout`](PageLayout.md)\[]

The page layouts offered in the "Insert layout" picker. Defaults to the bundled layouts.

***

### locale?

> `optional` **locale?**: `string`

BCP47 locale to render layout text in. Defaults to `"en"`.

***

### resolveImage?

> `optional` **resolveImage?**: [`LayoutImageResolver`](../type-aliases/LayoutImageResolver.md)

Resolves a layout image slot into a consumer-specific image URL.

***

### onInsert?

> `optional` **onInsert?**: (`layout`) => `void`

Called after a layout is inserted (e.g. to refresh a live preview).

#### Parameters

##### layout

[`PageLayout`](PageLayout.md)

#### Returns

`void`

***

### registerUi?

> `optional` **registerUi?**: `boolean`

Register this picker's standalone toolbar button and menu item.
