JavaScript rich-text editor libraries

Updated Nov 2026

JavaScript rich text editor libraries add formatted text editing, such as bold, lists, links, and images, to a web page. An editor keeps the document in its own structured model rather than in raw HTML. These libraries let content management systems, email builders, and AI writing tools collect formatted text that apps can store and render.

Popularity

ProseMirror has the most monthly downloads in this comparison, at 150.5M, a count that includes editors built on it, such as Tiptap.

LibraryMonthly downloadsStarsLast releaseLicense
ProseMirror
150.5M
2.0KOct 2026MIT
Tiptap
137.0M
39.1KNov 2026MIT
Lexical
33.7M
24.0KOct 2026MIT
Quill
32.5M
47.4KNov 2024BSD-3-Clause
Slate
16.6M
31.7KOct 2026MIT
TinyMCE
5.6M
16.3KNov 2026GPL-2.0-or-later
Draft.js
5.0M
22.5KAug 2020MIT
ckeditor5
4.6M
10.5KNov 2026GPL-2.0-or-later OR commercial license
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

Provides the view component of the ProseMirror editor toolkit.

Downloads / mo
150.5M
Stars
2.0K
Last release
1.42.9
License
MIT

Quickstart

From index.js
$ npm install prosemirror-state prosemirror-view prosemirror-model prosemirror-schema-basic prosemirror-schema-list prosemirror-example-setup
// code{
import {EditorState} from "prosemirror-state"
import {EditorView} from "prosemirror-view"
import {Schema, DOMParser} from "prosemirror-model"
import {schema} from "prosemirror-schema-basic"
import {addListNodes} from "prosemirror-schema-list"
import {exampleSetup} from "prosemirror-example-setup"

// Mix the nodes from prosemirror-schema-list into the basic schema to
// create a schema with list support.
const mySchema = new Schema({
  nodes: addListNodes(schema.spec.nodes, "paragraph block*", "block"),
  marks: schema.spec.marks
})

window.view = new EditorView(document.querySelector("#editor"), {
  state: EditorState.create({
    doc: DOMParser.fromSchema(mySchema).parse(document.querySelector("#content")),
    plugins: exampleSetup({schema: mySchema})
  })
})
// }

ProseMirror examples

From open-source projects on GitHub

Provides an extensible rich-text editor engine without a preset interface.

Downloads / mo
137.0M
Stars
39.1K
Last release
3.34.0
License
MIT

Strengths

  • Loads common editing extensions together. StarterKit adds common nodes, formatting, and undo controls.
  • Controls editing at runtime. Switch the editor between editable and read-only states with setEditable.

Limitations

  • Image uploads need separate handling. The Image extension displays images; supply the upload workflow separately.
  • Collaboration needs different undo handling. Use the collaboration history instead of the standalone undo extension.

Quickstart

From vanilla-javascript.md
$ npm install @tiptap/core @tiptap/pm @tiptap/starter-kit
import { Editor } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'

new Editor({
  element: document.querySelector('.element'),
  extensions: [StarterKit],
  content: '<p>Hello World!</p>',
})

Tiptap examples

From open-source projects on GitHub

Provides an extensible text editor framework with a focus on reliability and accessibility.

Downloads / mo
33.7M
Stars
24.0K
Last release
0.53.0
License
MIT

Quickstart

From intro.md
$ npm install lexical @lexical/extension @lexical/rich-text @lexical/history @lexical/clipboard
import {buildEditorFromExtensions} from '@lexical/extension';
import {HistoryExtension} from '@lexical/history';
import {RichTextExtension} from '@lexical/rich-text';
import {defineExtension} from 'lexical';

const editor = buildEditorFromExtensions(
  defineExtension({
    dependencies: [RichTextExtension, HistoryExtension],
    name: '@my-app/editor',
    namespace: 'my-app',
  }),
);
editor.setRootElement(document.getElementById('editor'));

Provides an extensible rich-text editor.

Downloads / mo
32.5M
Stars
47.4K
Last release
2.0.3
License
BSD-3-Clause

Strengths

  • Includes common formatting controls. Enable formatting in the editor and configure its toolbar separately.
  • Returns structured document content. Read formatted content as a Delta object through getContents.

Limitations

  • Pasted HTML can change. Clipboard conversion does not preserve the exact input HTML.

Quickstart

From README.md
$ npm install quill

<!-- Include stylesheet -->
<link href="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.snow.css" rel="stylesheet" />

<!-- Create the editor container -->
<div id="editor">
  <p>Hello World!</p>
  <p>Some initial <strong>bold</strong> text</p>
  <p><br /></p>
</div>

<!-- Include the Quill library -->
<script src="https://cdn.jsdelivr.net/npm/quill@2/dist/quill.js"></script>

<!-- Initialize Quill editor -->
<script>
  const quill = new Quill('#editor', {
    theme: 'snow'
  });
</script>

Quill examples

From open-source projects on GitHub

Provides a customizable framework for building rich text editors.

Downloads / mo
16.6M
Stars
31.7K
Last release
0.147.4
License
MIT

Quickstart

From README.md
$ yarn add slate slate-react
// Import React dependencies.
import React, { useState } from 'react'
// Import the Slate editor factory.
import { createEditor } from 'slate'

// Import the Slate components and React plugin.
import { Slate, Editable, withReact } from 'slate-react'

const initialValue = [
  {
    type: 'paragraph',
    children: [{ text: 'A line of text in a paragraph.' }],
  },
]

const App = () => {
  const [editor] = useState(() => withReact(createEditor()))
  return (
    // Add the editable component inside the context.
    <Slate editor={editor} initialValue={initialValue}>
      <Editable />
    </Slate>
  )
}

Provides a configurable rich-text editor with toolbar, menus, and editing plugins.

Downloads / mo
5.6M
Stars
16.3K
Last release
8.10.2
License
GPL-2.0-or-later

Strengths

  • Customizes named text formats. Override default formatting or add custom formats.
  • Adds image insertion controls. The image plugin adds an insertion dialog and toolbar control.

Limitations

  • Image uploads need a backend. Provide an upload handler that stores images and returns their locations.
  • PDF export costs extra. The PDF export plugin is a paid subscription add-on.

Quickstart

From npm-projects.md
$ npm install tinymce@^8
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <script src="/path/or/uri/to/tinymce.min.js" referrerpolicy="origin" crossorigin="anonymous"></script>
    <script>
      tinymce.init({
        selector: '#mytextarea',
        license_key: 'gpl' // gpl for open source, T8LK:... for commercial
      });
    </script>
  </head>

  <body>
    <h1>TinyMCE Quick Start Guide</h1>
    <form method="post">
      <textarea id="mytextarea">Hello, World!</textarea>
    </form>
  </body>
</html>

TinyMCE examples

From open-source projects on GitHub
#onInit(editor: Editor) {
	//enable browser based spell checking
	editor.getBody().setAttribute('spellcheck', 'true');
	uriAttributeSanitizer(editor);
	editor.setContent(typeof this.value === 'string' ? this.value : '');
}

Provides a React framework for building text editors.

Downloads / mo
5.0M
Stars
22.5K
Last release
0.11.7
License
MIT

Quickstart

From DraftEditor.react.js
$ npm install --save draft-js
import React from 'react';
import { Editor, EditorState } from 'draft-js';
import 'draft-js/dist/Draft.css';

export default function DraftField() {
  const [state, update] = React.useState(() => EditorState.createEmpty());
  return (
    <section style={{ border: '1px solid #ccc', minHeight: 96 }}>
      <Editor editorState={state} onChange={update} />
    </section>
  );
}

Draft.js examples

From open-source projects on GitHub

ckeditor5

Provides ready-to-use rich text editors with real-time collaborative editing.

Downloads / mo
4.6M
Stars
10.5K
Last release
49.1.0
License
GPL-2.0-or-later OR commercial license

Quickstart

From quick-start.md
$ npm install ckeditor5
import { ClassicEditor, Essentials, Bold, Italic, Font, Paragraph } from 'ckeditor5';

import 'ckeditor5/ckeditor5.css';

ClassicEditor
	.create( {
		attachTo: document.querySelector( '#editor' ),
		licenseKey: '<YOUR_LICENSE_KEY>', // Or 'GPL'.
		plugins: [ Essentials, Bold, Italic, Font, Paragraph ],
		toolbar: [
			'undo', 'redo', '|', 'bold', 'italic', '|',
			'fontSize', 'fontFamily', 'fontColor', 'fontBackgroundColor'
		],
		root: {
			placeholder: 'Type here...'
		}
	} )
	.then( /* ... */ )
	.catch( /* ... */ );

FAQ

TinyMCE and CKEditor suit apps that want a ready editor with a toolbar. Quill suits apps that want a themed editor with a Delta document API. Tiptap and Lexical suit apps that build their own editor interface.

Quill ships a theme and toolbar with a Delta-based document API. Tiptap is a headless editor framework with no preset interface.

Lexical offers optional React packages on framework-independent editing infrastructure. Slate is a React framework with application-defined JSON nodes. Tiptap offers React integration over ProseMirror.

Tiptap is built on ProseMirror and packages it as extensions with framework integrations. ProseMirror itself composes separate state, model, transform, and view modules for a custom schema.

TinyMCE is an embeddable HTML WYSIWYG editor with a toolbar, themes, and a plugin system.

For coding agents

Found your rich-text editor library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official