Built on ProseMirror
Reliable document model and battle-tested transaction system.
Status: Stable Beta Deprecated New
rocket setting puzzle seti:typescript github discord
import { Editor } from '@domternal/core';const editor = new Editor({ extensions: [] });pnpm add @domternal/corenpm install @domternal/coreyarn add @domternal/coreimport { Editor } from '@domternal/core';const editor = new Editor({ extensions: [] });Built on ProseMirror
Reliable document model and battle-tested transaction system.
Ready-to-use UI
Toolbar, bubble menu, floating menu. All optional.
Extension System
13 nodes, 9 marks, 24 extensions. Tree-shakeable.
TypeScript First
Fully typed API, commands, and configs.
Install packages
pnpm add @domternal/core @domternal/themeCreate the editor
import { Editor, StarterKit } from '@domternal/core';
const editor = new Editor({ element: document.getElementById('editor')!, extensions: [StarterKit],});Done
Your editor is ready.
Standardni:
const editor = new Editor({ extensions: [StarterKit] });S naslovom:
import { Editor, StarterKit } from '@domternal/core';S highlightanim linijama:
const editor = new Editor({ element: document.getElementById('editor')!, extensions: [StarterKit],});S diff oznakom:
const editor = new Editor({ extensions: [ StarterKit, // highlight-next-line Placeholder.configure({ placeholder: 'Type here...' }), // [!code ++] CodeBlock, // [!code --] ],});