talira

ProseMirror

A toolkit for building rich-text editors on the web

open sourceMITself-hostablefree

ProseMirror is a toolkit for building rich text editors on top of contentEditable, where you define the document schema yourself and every change is a transaction on an immutable document. It is a set of separate modules (model, state, view, transform, commands, history, collaborative editing and more) with a small generic core, so very different editors can be built on it. It has built-in support for real-time collaborative editing and a plugin system for adding behaviour.

Problems it solves

  • build a rich text editor for a document format that isn't just HTML
  • contentEditable gives me messy, inconsistent HTML across browsers
  • my users need to edit structured documents with only the elements I allow
  • add Google Docs style real-time collaboration to my editor
  • build a WYSIWYG editor for Word-like documents with tables and lists
  • store the editor's content as JSON I can validate and transform on the server
  • track every change to a document so I can undo, redo and sync it
  • write a Markdown editor that shows formatted text as you type
  • Quill and similar editors can't handle the custom block types I need
  • insert custom inline widgets like merge fields or mentions into rich text
  • control exactly what pasting from Word or Google Docs puts into my editor

Features

  • custom document schemas
  • immutable state and transactions
  • collaborative editing
  • plugin system
  • undo history
  • input rules
  • keymaps
  • Markdown parsing and serializing
  • tables module
  • modular packages

Capabilities

Takes pluginsplan not known

Alternatives

The same job

These do what ProseMirror does.

  1. Lexical An extensible text editor framework that provides excellent reliability, accessibility and performance
  2. Tiptap The headless rich text editor framework for web artisans
  3. Quill Quill is a modern WYSIWYG editor built for compatibility and extensibility
  4. Univer Build your own AI office with Univer Office SDK
  5. CKEditor 5 Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing

Compare ProseMirror with the top 3