Skip to content

Toolbar Items ​

All available toolbar items organized by section.

Actions ​

ItemDescription
undoUndo the last change
redoRedo the last undone change
resetChangesDiscard all changes since the editor opened and clear the history (asks first)

AI ​

ItemDescription
aiOpen the AI prompt dialog if configured

Format ​

ItemDescription
boldToggle bold text
italicToggle italic text
underlineToggle underline
strikeToggle strikethrough

Format Extra ​

ItemDescription
supToggle superscript
subToggle subscript
codeToggle inline code
codeBlockInsert a code block with syntax highlighting
blockquoteInsert a blockquote

Style ​

ItemDescription
headingDropdown to select heading level (H1-H6)
fontFamilyDropdown to select font family
fontSizeDropdown to select font size
lineHeightSet line height
textColorText color: palette, recent colors, HEX, eyedropper, custom picker
highlightColorHighlight color: the same picker, "No highlight" first

The heading item accepts options after a colon: heading levels, p to add a paragraph item, and inline to show them as separate buttons instead of a dropdown:

vue
<Tiptapify :items="['heading:p,2,3,inline', 'bold', 'italic']" />

Alignment ​

ItemDescription
leftAlign text left
centerAlign text center
rightAlign text right
justifyJustify text
alignAlignment dropdown; align:left,center,right limits its options

List ​

ItemDescription
bulletListToggle bullet list
orderedListToggle numbered list
taskListToggle task list (checkboxes)
indentIndent the current block
outdentOutdent the current block

Media ​

ItemDescription
linkInsert/edit a link, or a link card with linkPreview
imageInsert/edit an image: by URL or upload, alt, caption, size, position
videoInsert/edit a YouTube, Vimeo or video file (.mp4, .webm, .ogg, .mov)
iframeEmbed a page by its address or its iframe code
emojiOpen emoji picker (10 categories)
charmapOpen special characters picker
tableInsert a table

Misc ​

ItemDescription
lineInsert a horizontal rule
pagebreakInsert a page break
sourceToggle raw HTML source view
previewToggle HTML preview mode
fullscreenToggle fullscreen editing mode
formatClearClear all formatting from selection
invisibleCharInsert invisible characters (spaces, etc.)

Separators ​

Use | as a separator between button groups in array-style items prop:

vue
<Tiptapify
  :items="['bold', 'italic', '|', 'heading', 'bulletList', '|', 'undo', 'redo']"
/>

Complete Toolbar Example ​

vue
<template>
  <Tiptapify
    :items="[
      'undo', 'redo',
      '|',
      'heading', 'fontFamily', 'fontSize',
      '|',
      'bold', 'italic', 'underline', 'strike',
      '|',
      'sup', 'sub', 'code', 'codeBlock', 'blockquote',
      '|',
      'left', 'center', 'right', 'justify',
      '|',
      'bulletList', 'orderedList', 'taskList',
      '|',
      'link', 'image', 'video', 'iframe',
      '|',
      'emoji', 'charmap', 'table',
      '|',
      'ai',
      '|',
      'line', 'pagebreak', 'formatClear',
      '|',
      'source', 'preview', 'fullscreen'
    ]"
  />
</template>

Released under the MIT License.