Skip to content

@syfxlin/tiptap-starter-kit is a collection of unofficial Tiptap extensions. Support for Markdown, Float Menu, Slash Menu and more.

License

Notifications You must be signed in to change notification settings

mlogclub/tiptap-starter-kit

 
 

Repository files navigation

Tiptap StarterKit

@syfxlin/tiptap-starter-kit is a collection of unofficial Tiptap extensions. Support for Markdown, Float Menu, Slash Menu and more.

Features

  • Out of the box.
  • Better Markdown support, based on remark.
  • Slash menu for Node insertion, with search filter support.
  • Float menu for Mark insertion, with status display support.
  • Click menu(a.k.a Drag & Drop button) for support dragging the selected content to the specified position.
  • Supports copy and paste Markdown or upload files on paste.
  • More content block support, such as emoji, mermaid, formulas, etc.

Included extensions

Marks

  • Subscript
  • Superscript
  • Bold
  • Code
  • Link
  • Italic
  • Strike
  • Highlight
  • Underline

Nodes

  • Text
  • Document
  • Heading
  • Paragraph
  • Blockquote
  • HardBreak
  • CodeBlock
  • HorizontalRule
  • BulletList
  • OrderedList
  • ListItem
  • TaskList
  • TaskItem
  • Details
  • DetailsContent
  • DetailsSummary
  • Table
  • TableRow
  • TableCell
  • TableHeader
  • Emoji
  • Embed
  • Image
  • Audio
  • Video
  • Mermaid
  • Plantuml
  • MathBlock
  • MathInline

Extensions

  • Uploader
  • Markdown
  • Clipboard
  • BlockMenu
  • FloatMenu
  • ClickMenu
  • History
  • Gapcursor
  • Dropcursor

Installation

pnpm i @syfxlin/tiptap-starter-kit @tiptap/core @tiptap/pm
# or
npm i @syfxlin/tiptap-starter-kit @tiptap/core @tiptap/pm
# or
yarn add @syfxlin/tiptap-starter-kit @tiptap/core @tiptap/pm

Usage

import { useEditor } from "@tiptap/react";
import { StarterKit } from "@syfxlin/tiptap-starter-kit";

const editor = useEditor({
  extensions: [
    StarterKit.configure({
      // disable
      emoji: false,
      // configure
      heading: {
        levels: [1, 2],
      },
    }),
  ],
});

Thanks

Maintainer

@syfxlin/tiptap-starter-kit is written and maintained with the help of Otstar Lin and the following contributors.

License

Released under the MIT License.

About

@syfxlin/tiptap-starter-kit is a collection of unofficial Tiptap extensions. Support for Markdown, Float Menu, Slash Menu and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 85.1%
  • Less 14.7%
  • Other 0.2%