Skip to content

Toolbar Items

All available toolbar items organized by section.

Actions

ItemDescription
undoUndo the last change
redoRedo the last undone change

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
textColorApply text color
highlightColorApply highlight/background color

Alignment

ItemDescription
leftAlign text left
centerAlign text center
rightAlign text right
justifyJustify text

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 hyperlink
imageInsert an image by URL
videoEmbed a YouTube video
iframeEmbed any URL as an iframe
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',
      '|',
      'line', 'pagebreak', 'formatClear',
      '|',
      'source', 'preview', 'fullscreen'
    ]"
  />
</template>

Released under the MIT License.