GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Tiptap Docs
  • UI Components
  • Website
  • Sign up
  • Tiptap Editor
  • Quick start
  • Authentication
  • Pro access
  • Tiptap trial
  • What's new in 3.0
  • All features
  • AIPaid
  • ReviewPaid
  • Smart CitationsPaid

This view

  • Original page
  • New address

GeezerVison is showing tiptap.dev — StarterKit extension | Tiptap Editor Docs

The StarterKit is a collection of the most popular Tiptap extensions. If you’re just getting started, this extension is for you.

Install

npm install @tiptap/starter-kit

Included extensions

Nodes

  • Blockquote
  • BulletList
  • CodeBlock
  • Document
  • HardBreak
  • Heading
  • HorizontalRule
  • ListItem
  • OrderedList
  • Paragraph
  • Text

Marks

  • Bold
  • Code
  • Italic
  • Link (New in v3)
  • Strike
  • Underline (New in v3)

Extensions

  • Dropcursor
  • Gapcursor
  • Undo/Redo
  • ListKeymap (New in v3)
  • TrailingNode (New in v3)

Source code

packages/starter-kit/

Using the StarterKit extension

Pass StarterKit to the editor to load all included extension at once.

import { Editor } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'

const editor = new Editor({
  content: '<p>Example Text</p>',
  extensions: [StarterKit],
})

You can configure the included extensions, or even disable a few of them, like shown below.

import { Editor } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'

const editor = new Editor({
  content: '<p>Example Text</p>',
  extensions: [
    StarterKit.configure({
      // Disable an included extension
      undoRedo: false,

      // Configure an included extension
      heading: {
        levels: [1, 2],
      },
    }),
  ],
})

Tiptap does not allow two extensions with the same name property. If a custom extension has the same name as one of the extensions included in StarterKit, disable it:

import { Editor, Mark } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'
import Link from '@tiptap/extension-link'

const CustomLinkExtension = Mark.create({
  name: 'link',
})

const editor = new Editor({
  extensions: [
    StarterKit.configure({
      // Disable the Link extension
      // so it does not conflict with CustomLinkExtension
      link: false,
    }),
    CustomLinkExtension,
  ],
})
PreviouslyEditor events
Next upText formatting
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.