Modern, extensible rich text editor toolkit built on ProseMirror. Classic and Notion-style editors out of the box. Or go headless and assemble from 65+ tree-sha
Modern, extensible rich text editor toolkit built on ProseMirror. Classic and Notion-style editors out of the box. Or go headless and assemble from 65+ tree-sha
A rich text editor toolkit built on ProseMirror, with a headless core and first-class Angular, React, Vue, and Vanilla components. Take the core alone and drive the DOM yourself, add the toolbar and theme for a finished editor, or mount the components for your framework. Notion-style block editing, drag handle, slash menu and floating outline are included. JavaScript exports are tree-shakeable; the optional theme ships as one complete CSS stylesheet. Website · Getting Started · Packages & Bundle Size
Live examples - full editors for Angular, React, Vue, and Vanilla, editable in the browser
Domternal component, toolbar, bubble menu, floating menu, emoji picker, notion color picker, custom node views (React 18+)Domternal component, useEditor/useEditorState composables, toolbar, bubble menu, floating menu, emoji picker, notion color picker, custom node views (Vue 3.3+)@domternal/extension-block-controls and @domternal/extension-toc, with preset: 'notion' for the layout and preset-aware behaviorprintDocument() leaves your app's chrome off the page, and the theme's paper layer applies to the reader's own Ctrl/Cmd+P with no code involvededitor.chain().focus().toggleBold().run()@domternal/theme deliberately ships one complete stylesheetstrict, with exactOptionalPropertyTypes and noUncheckedIndexedAccessgetHTML({ styled: true }) produces inline CSS ready for email clients, CMS, and Google DocsgenerateHTML, generateJSON, generateText for server-side renderingpnpm add @domternal/coreimport { Editor, Document, Text, Paragraph, Bold, Italic, Underline } from '@domternal/core';
const editor = new Editor({
element: document.getElementById('editor')!,
extensions: [Document, Text, Paragraph, Bold, Italic, Underline],
content: '
Hello World!
',
});The example above wires the minimum schema by hand to show the headless model; in practice use StarterKit for a batteries-included setup with headings, lists, code blocks, history, and more.
Getting Started Guide - headless core, themed UI with toolbar, and Angular/React/Vue component setup
The 1.1.1 patch release fixes column insertion in resized tables. Existing editor APIs
and saved document formats remain compatible.
Upgrade installed @domternal/* packages together to 1.1.1: wrappers require core
`>=1.1.0 = 22 and pnpm >= 10.
The source code is available under the MIT License. Use of the Domternal name and logo is governed by the Trademark Usage Policy.
No open issues yet, or sync has not completed.