Code Monkey home page Code Monkey logo

tiptap-starter-kit's Introduction

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.

tiptap-starter-kit's People

Contributors

renovate[bot] avatar syfxlin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tiptap-starter-kit's Issues

emoji唤出的bug

复现流程:

当输入::时可以唤醒emoji,当继续输入的内容中含有::时会触发bug

比如以下内容:

::abcdas::sadaas

bug截图

image

@syfxlin 期待着您抽空修复,Thanks

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/release.yaml
  • actions/checkout v4
  • pnpm/action-setup v4.0.0
  • actions/setup-node v4
npm
package.json
  • @tiptap/extension-blockquote ^2.4.0
  • @tiptap/extension-bold ^2.4.0
  • @tiptap/extension-bullet-list ^2.4.0
  • @tiptap/extension-code ^2.4.0
  • @tiptap/extension-code-block-lowlight ^2.4.0
  • @tiptap/extension-document ^2.4.0
  • @tiptap/extension-dropcursor ^2.4.0
  • @tiptap/extension-gapcursor ^2.4.0
  • @tiptap/extension-hard-break ^2.4.0
  • @tiptap/extension-heading ^2.4.0
  • @tiptap/extension-highlight ^2.4.0
  • @tiptap/extension-history ^2.4.0
  • @tiptap/extension-horizontal-rule ^2.4.0
  • @tiptap/extension-image ^2.4.0
  • @tiptap/extension-italic ^2.4.0
  • @tiptap/extension-link ^2.4.0
  • @tiptap/extension-list-item ^2.4.0
  • @tiptap/extension-ordered-list ^2.4.0
  • @tiptap/extension-paragraph ^2.4.0
  • @tiptap/extension-strike ^2.4.0
  • @tiptap/extension-subscript ^2.4.0
  • @tiptap/extension-superscript ^2.4.0
  • @tiptap/extension-table ^2.4.0
  • @tiptap/extension-table-cell ^2.4.0
  • @tiptap/extension-table-header ^2.4.0
  • @tiptap/extension-table-row ^2.4.0
  • @tiptap/extension-task-item ^2.4.0
  • @tiptap/extension-task-list ^2.4.0
  • @tiptap/extension-text ^2.4.0
  • @tiptap/extension-underline ^2.4.0
  • @tiptap/suggestion ^2.4.0
  • gemoji ^8.1.0
  • katex ^0.16.10
  • lowlight ^3.1.0
  • mdast-util-from-markdown ^2.0.1
  • mdast-util-to-markdown ^2.1.0
  • mermaid ^10.9.1
  • plantuml-encoder ^1.4.0
  • plyr ^3.7.8
  • remark-directive ^3.0.0
  • remark-gemoji ^8.0.0
  • remark-gfm ^4.0.0
  • remark-math ^6.0.0
  • remark-parse ^11.0.0
  • remark-stringify ^11.0.0
  • smooth-scroll-into-view-if-needed ^2.0.2
  • tippy.js ^6.3.7
  • unified ^11.0.4
  • unist-builder ^4.0.0
  • unist-util-visit ^5.0.0
  • @syfxlin/eslint-config ^1.0.7
  • @tiptap/core ^2.4.0
  • @tiptap/pm ^2.4.0
  • @types/katex ^0.16.7
  • @types/mdast ^4.0.4
  • @types/plantuml-encoder ^1.4.2
  • @types/unist ^3.0.2
  • bunchee ^5.2.0
  • eslint ^9.4.0
  • eslint-plugin-format ^0.1.1
  • less ^4.2.0
  • less-plugin-autoprefix ^2.0.0
  • typescript ^5.4.5
  • vite ^5.3.0
  • @tiptap/core ^2.2.4
  • @tiptap/pm ^2.2.4

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.