Skip to content

Function: createToolbar() ​

ts
function createToolbar(editor, options): Toolbar;

Behaviour and accessibility for a formatting toolbar (WAI-ARIA toolbar pattern): one Tab stop, arrow keys between buttons, aria-pressed toggles, disabled from editor.can(), platform-aware shortcut hints. Renders nothing — spread the props on your own elements.

Parameters ​

ParameterType
editorEditor
optionsToolbarOptions

Returns ​

Toolbar