Interface: KitToolbarOptions
Options for mountToolbar().
Extended by
Properties
| Property | Type | Description |
|---|---|---|
blockTypes? | boolean | Show the "Text style" menu (paragraph, headings). Default true. |
exclude? | readonly string[] | Buttons to leave out, by id (e.g. ['underline', 'code']). |
headingLevels? | readonly number[] | Heading levels in that menu. Match basic({ heading: { levels } }). Default [1, 2, 3]. |
idPrefix? | string | Prefix for element ids, needed when several editors share a page. Default: generated. |
link? | boolean | Show the link button and form. Default true. Set false for the Mod-k shortcut too. |
messages? | Partial<Messages> | UI texts, e.g. uz from @writeon/ui/locales/uz. Default English. |
mobile? | boolean | On touch screens (pointer: coarse), dock the toolbar above the on-screen keyboard while the editor has focus, scrolling sideways. Default true. |