Home

Awesome

Dante 3 - This is it! 🔥

Rollup Build

Just another medium clone built on top of ProseMirror's / TipTap

Dante3 is a port from Dante2 (Draftjs) . This version is built on top of TipTap and reaches all Dante2's features with a shiny ultra mega super uber maintainable architecture.

https://user-images.githubusercontent.com/11976/120087165-bb5c4f00-c0b3-11eb-9002-97c480f3725a.mp4

See the demo at: dante-editor.dev

Why rewrite a new version of Dante?

The previous version (Dante2) was made on DraftJs, that's a facebook library to build WYSIWYG editor, I'd choose that technology because it implemented a very interesting data model and abstracted many parts of the heuristics implementation that Dante1 (the previous version) built as a naive implementation relying a lot on DOM manipulation, So Dante2 was great and is working on a ton of production websites. Sadly over the last years this library has not received much attention from maintainers. Among the ~700 unattended reported issues there are some that have become a deal breaker for me:

My bet, TipTap

After shopping many editors libraries, I mean after tried to implement Dante on almost all of them (Trix, Editorjs, Quilljs, Slate, Prosemirror) I've TipTap library (which is based on Prosemirror)., I guess all editors libraries have their own flaws but after review it all TipTap is the best of it's class, very well designed/architectured, and I love the community around their ecosystem. So that's it.

Features:

Block based content:

Dante editor can be extended with (React) components to, currently there are default components to be used as is:

Installation

npm install dante3 or yarn add dante3

Usage

Component Based

<DanteEditor
  content={'hello world'}
/>

Options:

Many configuration options and plugin usage can be found on the documentation page:

See dante-editor.dev

Development

Installation

dependencies

Building

dev install:

Status

Dante3 is on beta, actively maintained, with all the features that Dante2 has. As is relying on TipTap (which is based on Prosemirror) which has a better browser support and mobile support. Also has realtime collab capabilities.

Monorepo

This repository now contains prior Dante versions, located in the packages folder. so Dante1*, Dante2 and Dante3 lives in the same repo.

Open source license

Dante is licensed under MIT, so you are free to do whatever you want. If you are using it commercially, become one of our wonderful sponsors to fund the maintenance, support and development of Dante now and in the future.

💓 Your sponsorship

Your sponsorship helps to maintain, update, support and develop all of our open source projects, including tiptap and many more.

Acknowledgments

Prosemirror library & Tiptap authors

Workspaces

we use npm workspaces to manage the monorepo, for instance to install a dependence in some package, use:

npm install --workspace=Dante2

npm install some-dep --workspace=Dante2

build

deploy

npm install rollup-plugin-auto-external --save-dev --workspace=dante3

npm run dante3:build