Skip to content

Inline Toolbar

The Inline Editor controls toolbar and extension registration via toolbar: InlineToolbarConfig.

Defaults

ts
{ undoRedo: true, textFormat: true, link: true }

All Switches

KeyExtension / UIDescription
undoRedoStarterKit historyUndo / redo
headingStarterKit headingHeading levels
textFormatbold/italic/underline/strikeText formatting
listTaskListOrdered / unordered / task lists
alignTextAlignAlignment
linkLink + link bubbleInsert link
clearFormatClear formatting
fontFontFamily + FontSizeFont family and size
codeBlockcodeBlockLowlightCode block

Rule: when toolbar.x !== true, the corresponding button is hidden and the extension is not registered.

Example

vue
<YanivInlineEditor
  v-model:content="html"
  mode="edit"
  placeholder="Write a comment…"
  :toolbar="{
    undoRedo: true,
    heading: true,
    textFormat: true,
    list: true,
    align: true,
    link: true,
    clearFormat: true,
    font: false,
    codeBlock: false,
  }"
/>

Custom Slot

Use the #toolbar slot + atomic components to compose your own toolbar. See Inline Composition.

Preview

Built-in toolbar and #toolbar slot are not rendered under mode="preview".