# JavaScript rich-text editor libraries

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

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [ProseMirror](#prosemirror-view) | 150.5M | 2.0K | Oct 2026 | MIT |
| [Tiptap](#tiptap) | 137.0M | 39.1K | Nov 2026 | MIT |
| [Lexical](#lexical) | 33.7M | 24.0K | Oct 2026 | MIT |
| [Quill](#quill) | 32.5M | 47.4K | Nov 2024 | BSD-3-Clause |
| [Slate](#slate) | 16.6M | 31.7K | Oct 2026 | MIT |
| [TinyMCE](#tinymce) | 5.6M | 16.3K | Nov 2026 | GPL-2.0-or-later |
| [Draft.js](#draft-js) | 5.0M | 22.5K | Aug 2020 | MIT |
| [ckeditor5](#ckeditorfive) | 4.6M | 10.5K | Nov 2026 | GPL-2.0-or-later OR commercial license |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[ProseMirror](#prosemirror-view) has the most monthly downloads in this comparison, at 150.5M, a count that includes editors built on it, such as Tiptap.

## Capabilities

| Library | Bundled toolbar | HTML export |
| --- | --- | --- |
| [ProseMirror](#prosemirror-view) | Via plugin | Yes |
| [Tiptap](#tiptap) | No | Yes |
| [Lexical](#lexical) | No | Via plugin |
| [Quill](#quill) | Yes | Yes |
| [Slate](#slate) | No | No |
| [TinyMCE](#tinymce) | Yes | Yes |
| [Draft.js](#draft-js) | No | No |
| [ckeditor5](#ckeditorfive) | Yes | Yes |

## Libraries

### ProseMirror

[GitHub](https://github.com/ProseMirror/prosemirror-view) · [npm](https://www.npmjs.com/package/prosemirror-view) · [Docs](https://prosemirror.net)

Provides the view component of the ProseMirror editor toolkit.

- Downloads / mo: 150.5M
- Stars: 2.0K
- Last release: 1.42.9
- License: MIT
- Capabilities: [From the ProseMirror docs](https://prosemirror.net)

```sh
npm install prosemirror-state prosemirror-view prosemirror-model prosemirror-schema-basic prosemirror-schema-list prosemirror-example-setup
```

**ProseMirror/website** (202 stars)

[ProseMirror/website](https://github.com/ProseMirror/website) 

```javascript
dispatchInner(tr) {
  let {state, transactions} = this.innerView.state.applyTransaction(tr)
  this.innerView.updateState(state)

  if (!tr.getMeta("fromOutside")) {
    let outerTr = this.outerView.state.tr, offsetMap = StepMap.offset(this.getPos() + 1)
    for (let i = 0; i < transactions.length; i++) {
      let steps = transactions[i].steps
      for (let j = 0; j < steps.length; j++)
        outerTr.step(steps[j].map(offsetMap))
    }
    if (outerTr.docChanged) this.outerView.dispatch(outerTr)
  }
}

```

[example/footnote/index.js](https://github.com/ProseMirror/website/blob/a16b4ece45f135e5f001ab59d25f2d43c25974e1/example/footnote/index.js#L108-L121) · [More projects using ProseMirror →](https://dashboard.exa.ai/playground/search?q=prosemirror-view%20GitHub%20projects)

**Quickstart**

```javascript
// 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})
  })
})
// }

```

From [index.js](https://github.com/ProseMirror/website/blob/master/example/basic/index.js)

### Tiptap

[GitHub](https://github.com/ueberdosis/tiptap) · [npm](https://www.npmjs.com/package/@tiptap/core) · [Docs](https://tiptap.dev)

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
- Capabilities: [From the Tiptap docs](https://tiptap.dev)

**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.

**Watch out for**

- **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.

```sh
npm install @tiptap/core @tiptap/pm @tiptap/starter-kit
```

**marmelab/react-admin** (27.0K stars)

[marmelab/react-admin](https://github.com/marmelab/react-admin) 

```javascript
() => {
        // Tiptap v3's Editor.destroy() sets commandManager to null, and the
        // `commands` getter dereferences it. When the editor is recreated (e.g.
        // readOnly/disabled/editorOptions/id change), this passive effect can run
        // against the just-destroyed instance, throwing "Cannot read properties of
        // null (reading 'commands')". Bail out on destroyed editors as well.
        if (!editor || editor.isDestroyed) return;

        const { from, to } = editor.state.selection;

        editor.commands.setContent(field.value, {
            emitUpdate: false,
            parseOptions: { preserveWhitespace: true },
        });
        editor.commands.setTextSelection({ from, to });
    }

```

[packages/ra-input-rich-text/src/RichTextInput.tsx](https://github.com/marmelab/react-admin/blob/f466cf73330d1458c9e371c5a7bce2659ede5817/packages/ra-input-rich-text/src/RichTextInput.tsx#L116-L131) · [More projects using Tiptap →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20%40tiptap/core%20for%20rich%20text%20editor%20content%20synchronization%2C%20selection%20preservation%2C%20lifecycle%20cleanup%20and%20custom%20toolbar%20actions&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript
import { Editor } from '@tiptap/core'
import StarterKit from '@tiptap/starter-kit'

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

```

From [vanilla-javascript.md](https://tiptap.dev/docs/editor/getting-started/install/vanilla-javascript)

### Lexical

[GitHub](https://github.com/meta/lexical) · [npm](https://www.npmjs.com/package/lexical) · [Docs](https://lexical.dev)

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
- Capabilities: [From the Lexical docs](https://lexical.dev)

```sh
npm install lexical @lexical/extension @lexical/rich-text @lexical/history @lexical/clipboard
```

**Quickstart**

```tsx
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'));

```

From [intro.md](https://github.com/meta/lexical/blob/main/packages/lexical-website/docs/intro.md) · [Find projects using Lexical →](https://dashboard.exa.ai/playground/search?q=lexical%20GitHub%20projects)

### Quill

[GitHub](https://github.com/slab/quill) · [npm](https://www.npmjs.com/package/quill) · [Docs](https://quilljs.com)

Provides an extensible rich-text editor.

- Downloads / mo: 32.5M
- Stars: 47.4K
- Last release: 2.0.3
- License: BSD-3-Clause
- Capabilities: [From the Quill docs](https://quilljs.com)

**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.

**Watch out for**

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

```sh
npm install quill
```

**zenoamaro/react-quill** (7.0K stars)

[zenoamaro/react-quill](https://github.com/zenoamaro/react-quill) 

```javascript
setEditorSelection(editor: Quill, range: Range) {
  this.selection = range;
  if (range) {
    // Validate bounds before applying.
    const length = editor.getLength();
    range.index = Math.max(0, Math.min(range.index, length-1));
    range.length = Math.max(0, Math.min(range.length, (length-1) - range.index));
    editor.setSelection(range);
  }
}

```

[src/index.tsx](https://github.com/zenoamaro/react-quill/blob/615b4bf730e7a34c1dda1707447123c1d727f9d1/src/index.tsx#L394-L403) · [More projects using Quill →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20quill%20for%20rich%20text%20editor%20content%20synchronization%2C%20selection%20preservation%2C%20lifecycle%20cleanup%20and%20custom%20toolbar%20actions&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript

<!-- 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>

```

From [README.md](https://github.com/slab/quill/blob/main/packages/website/content/docs/quickstart.mdx)

### Slate

[GitHub](https://github.com/ianstormtaylor/slate) · [npm](https://www.npmjs.com/package/slate) · [Docs](http://slatejs.org)

Provides a customizable framework for building rich text editors.

- Downloads / mo: 16.6M
- Stars: 31.7K
- Last release: 0.147.4
- License: MIT
- Capabilities: [From the Slate docs](http://slatejs.org)

```sh
yarn add slate slate-react
```

**Quickstart**

```tsx
// 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>
  )
}

```

From [README.md](https://docs.slatejs.org/walkthroughs/01-installing-slate) · [Find projects using Slate →](https://dashboard.exa.ai/playground/search?q=slate%20GitHub%20projects)

### TinyMCE

[GitHub](https://github.com/tinymce/tinymce) · [npm](https://www.npmjs.com/package/tinymce) · [Docs](https://www.tiny.cloud)

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
- Capabilities: [From the TinyMCE docs](https://www.tiny.cloud)

**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.

**Watch out for**

- **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.

```sh
npm install tinymce@^8
```

**umbraco/Umbraco-CMS** (5.3K stars)

[umbraco/Umbraco-CMS](https://github.com/umbraco/Umbraco-CMS) 

```javascript
#onInit(editor: Editor) {
	//enable browser based spell checking
	editor.getBody().setAttribute('spellcheck', 'true');
	uriAttributeSanitizer(editor);
	editor.setContent(typeof this.value === 'string' ? this.value : '');
}

```

[src/Umbraco.Web.UI.Client/src/packages/tiny-mce/components/input-tiny-mce/input-tiny-mce.element.ts](https://github.com/umbraco/Umbraco-CMS/blob/559c6c9f312df1d6eb1bde82c4b81c0896da6382/src/Umbraco.Web.UI.Client/src/packages/tiny-mce/components/input-tiny-mce/input-tiny-mce.element.ts#L362-L367) · [More projects using TinyMCE →](https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20projects%20using%20tinymce%20for%20rich%20text%20editor%20content%20synchronization%2C%20selection%20preservation%2C%20lifecycle%20cleanup%20and%20custom%20toolbar%20actions&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```javascript
<!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>

```

From [npm-projects.md](https://www.tiny.cloud/docs/tinymce/latest/npm-projects/)

### Draft.js

[GitHub](https://github.com/facebookarchive/draft-js) · [npm](https://www.npmjs.com/package/draft-js) · [Docs](https://draftjs.org/)

Provides a React framework for building text editors.

- Downloads / mo: 5.0M
- Stars: 22.5K
- Last release: 0.11.7
- License: MIT
- Capabilities: [From the Draft.js docs](https://draftjs.org/)

```sh
npm install --save draft-js
```

**jpuri/react-draft-wysiwyg** (6.5K stars)

[jpuri/react-draft-wysiwyg](https://github.com/jpuri/react-draft-wysiwyg) 

```tsx
style => {
    const newStyle = style === 'monospace' ? 'CODE' : style.toUpperCase();
    const { editorState, onChange } = this.props;
    let newState = RichUtils.toggleInlineStyle(editorState, newStyle);
    if (style === 'subscript' || style === 'superscript') {
      const removeStyle = style === 'subscript' ? 'SUPERSCRIPT' : 'SUBSCRIPT';
      const contentState = Modifier.removeInlineStyle(
        newState.getCurrentContent(),
        newState.getSelection(),
        removeStyle
      );
      newState = EditorState.push(
        newState,
        contentState,
        'change-inline-style'
      );
    }
    if (newState) {
      onChange(newState);
    }
  }

```

[src/controls/Inline/index.js](https://github.com/jpuri/react-draft-wysiwyg/blob/4743d7387474d7f88a16e40d3c0e3a9cc9c7a3f9/src/controls/Inline/index.js#L54-L74) · [More projects using Draft.js →](https://dashboard.exa.ai/playground/search?q=draft-js%20GitHub%20projects)

**Quickstart**

```tsx
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>
  );
}

```

From [DraftEditor.react.js](https://draftjs.org/docs/api-reference-editor-state/)

### ckeditor5

[GitHub](https://github.com/ckeditor/ckeditor5) · [npm](https://www.npmjs.com/package/ckeditor5) · [Docs](https://ckeditor.com)

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
- Capabilities: [From the ckeditor5 docs](https://ckeditor.com)

```sh
npm install ckeditor5
```

**Quickstart**

```javascript
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( /* ... */ );

```

From [quick-start.md](https://ckeditor.com/docs/ckeditor5/latest/getting-started/installation/self-hosted/quick-start.html) · [Find projects using ckeditor5 →](https://dashboard.exa.ai/playground/search?q=ckeditor5%20GitHub%20projects)

## FAQ

### Which JavaScript rich text editor library should I use?

[TinyMCE](#tinymce) and [CKEditor](#ckeditorfive) suit apps that want a ready editor with a toolbar. [Quill](#quill) suits apps that want a themed editor with a Delta document API. [Tiptap](#tiptap) and [Lexical](#lexical) suit apps that build their own editor interface.

### Quill vs Tiptap: which should I use?

[Quill](#quill) ships a theme and toolbar with a Delta-based document API. [Tiptap](#tiptap) is a headless editor framework with no preset interface.

### What is the best React rich text editor?

[Lexical](#lexical) offers optional React packages on framework-independent editing infrastructure. [Slate](#slate) is a React framework with application-defined JSON nodes. [Tiptap](#tiptap) offers React integration over ProseMirror.

### Tiptap vs ProseMirror: which should I use?

[Tiptap](#tiptap) is built on ProseMirror and packages it as extensions with framework integrations. [ProseMirror](#prosemirror-view) itself composes separate state, model, transform, and view modules for a custom schema.

### What is TinyMCE?

[TinyMCE](#tinymce) is an embeddable HTML WYSIWYG editor with a toolbar, themes, and a plugin system.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best JavaScript rich text editor libraries Quill Tiptap Jodit TinyMCE examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
