The headless rich text editor framework for web artisans.
Go to file
Nick Perez 74bfdc5bef
feat: error handling of invalid content for a schema (#5178)
This change introduces two new top-level options to the editor: `enableContentCheck` & `onContentError` for dealing with content supplied that does not match the prose-mirror schema generated by the set of tiptap extensions.

`enableContentCheck` allows the app developer to opt into the behavior to check for invalid schemas (this change is otherwise backwards compatible).
When true, this will try to parse the document, and any content that does not match the schema will emit a `contentError` which can be listened to via the `onContentError` callback.
2024-06-04 09:32:54 +02:00
.github chore: update github template files with more choesive and simpler versions (#5134) 2024-05-11 03:45:38 +02:00
.husky chore: added commitlint for conventional commit linting (#5133) 2024-05-11 03:34:37 +02:00
.vscode chore: add default linter for vscode 2023-06-22 19:22:08 +02:00
demos fix(demos): dont remove sources and content on tab change 2024-05-30 17:43:51 +02:00
docs feat: error handling of invalid content for a schema (#5178) 2024-06-04 09:32:54 +02:00
packages feat: error handling of invalid content for a schema (#5178) 2024-06-04 09:32:54 +02:00
tests feat: error handling of invalid content for a schema (#5178) 2024-06-04 09:32:54 +02:00
.editorconfig enable editorconfig for all files 2020-09-25 18:01:53 +02:00
.eslintignore fix lint error 2020-09-30 22:43:58 +02:00
.eslintrc.js Require file extensions for imports and exports (#4001) 2023-06-30 21:03:49 +02:00
.gitignore chore: add Dev demo folder (#3887) 2023-03-27 15:21:03 +02:00
.lintstagedrc.js chore: lint only staged files (#2957) 2022-07-06 12:59:02 +02:00
babel.config.js add @babel/preset-react 2021-02-26 02:40:22 +01:00
CHANGELOG.md v2.4.0 2024-05-14 14:45:38 +02:00
commitlint.config.mjs chore: added commitlint for conventional commit linting (#5133) 2024-05-11 03:34:37 +02:00
CONTRIBUTING.md chore: add cz-conventional-changelog cli & update contributing guides (#5148) 2024-05-14 14:41:03 +02:00
docsearch.config.json update docsearch 2024-01-02 11:11:57 +01:00
env.d.ts improve typescript setup 2021-09-17 12:43:26 +02:00
lerna.json v2.4.0 2024-05-14 14:45:38 +02:00
LICENSE.md Update LICENSE.md 2023-05-10 11:08:48 +02:00
package-lock.json chore: update package-lock.json 2024-05-29 10:51:36 +02:00
package.json chore: add cz-conventional-changelog cli & update contributing guides (#5148) 2024-05-14 14:41:03 +02:00
README.md chore: update build badge 2024-05-14 14:49:48 +02:00
tsconfig.json Move back from tsup/esbuild to rollup (#3720) 2023-02-08 11:12:43 +01:00

Tiptap Editor

The Tiptap Editor is a headless, framework-agnostic rich text editor that's customizable and extendable through extensions. Its headless nature means it comes without a set user interface, offering full design freedom (for a jumpstart, see linked UI templates below). Tiptap is based on the highly reliable ProseMirror library.

Tiptap Editor is complemented by the collaboration open-source backend Hocuspocus. Both the Editor and Hocuspocus form the foundation of the Tiptap Suite.

Build Status Version Downloads License Chat Sponsor

How does the Tiptap Editor work?

  • Headless Framework: Tiptap does not rely on a user interface. So there is no need for class overrides or code hacks. If you do need an example UI feel free to browse our UI templates linked below.
  • Framework-agnostic: The Tiptap Editor is designed to work across different frontend frameworks. This means whether you're using Vue, React, or plain JavaScript, Tiptap integrates without compatibility issues.
  • Extension based: Extensions in Tiptap allow for a tailored editing experience, from simple text styling to advanced features like drag-and-drop block editing. You have the option to choose from over 100 extensions available in the documentation and community to enhance your editor's functionality.
  • Customize your UX: The editor was built to give you control to define your own extensions and nodes.

Editor Pro Extensions

The Pro Extensions are a set of advanced functionalities that enhance the capabilities of the Tiptap Editor. They are additional features that can be integrated into the base editor to provide more sophisticated editing options.

Key functionalities include collaborative editing, which allows multiple users to edit documents simultaneously, drag-and-drop file management for easier handling of documents and media, and unique node ID assignment. Review the docs right here.

Pro Extensions are free with a Tiptap account. Once signed up, review the guide in your account.

Make your editor collaborative

Interested in collaborative editing? Check out our open-source package Hocuspocus - a collaboration backend built around the CRDT power of Yjs. Hocuspocus serves as the backbone for the Tiptap Suite.

Documentation

For more detailed information, make sure to check out our documentation. If you encounter any problems or have suggestions for our system, please open an issue.

Examples, CodeSandbox and UI Templates

Have a look at the examples to see Tiptap in action or review and fork our codesandboxes.

About Tiptap

Tiptap is a collection of developer components based on open-source technology, forming the basis of our advanced, paid features. It includes the open-source editor component, collaboration features, Content AI, and Tiptap Cloud. We are developing open-source products that also shape our paid features. We're committed to improving both, ensuring quality and reliability in every update.

For more details, visit the Tiptap documentation or website.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discuss Tiptap on GitHub

Sponsors 💖


Complish

Storyblok

PostHog

Reflect

Ziff Media

Basewell

iFixit, ApostropheCMS, Novadiscovery, Omics Data Automation, Flow Mobile, DocIQ and hundreds of awesome inviduals.

Contributing

Feel like adding some magic of your own to Tiptap Editor Core? We welcome contributions! Please see our CONTRIBUTING guidelines for how to get started.

Contributors

Sam Willis, Brian Hung, Dirk Holtwick, Sam Duvall, Christoph Flathmann, Erick Wilder, Marius Tolzmann, jjangga0214, Maya Nedeljkovich, Ryan Bliss, Gregor and many more.

License

The MIT License (MIT). Please see License File for more information.