Function: mountToolbar()
ts
function mountToolbar(
target,
editor,
options?
): KitToolbar;Mount the default kit's toolbar into target: undo/redo, text style menu, marks, lists, quote, clear formatting and link, with tooltips. Built on @writeon/ui, so it has the same keyboard support and ARIA. Styles come from @writeon/kit/style.css.
Parameters
| Parameter | Type |
|---|---|
target | HTMLElement |
editor | Editor |
options? | KitToolbarOptions |
Returns
Example
ts
import '@writeon/kit/style.css'
const toolbar = mountToolbar(document.querySelector('#toolbar'), editor, { messages: uz })