DocEditorPlayground / index.html
Eric Putnam
Claude Opus 5 (1M context)
chore: sync doceditorplayground @ 83142b4
06e51c6
Raw History Blame Contribute Delete
12.3 kB
<!DOCTYPE html><html lang="en" dir="ltr"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="description" content="Compare six open-source rich-text editors - CKEditor 5, TipTap, Toast UI, Editor.js, Slate, and Lexical - in one consistent workspace." data-next-head=""/><link rel="preconnect" href="https://fonts.googleapis.com" data-next-head=""/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" data-next-head=""/><link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,600;1,6..72,400&amp;family=Public+Sans:wght@400;600;700&amp;family=IBM+Plex+Mono:wght@400;500&amp;display=swap" rel="stylesheet" data-next-head=""/><link rel="icon" href="data:image/svg+xml,%3Csvg xmlns=&#x27;http://www.w3.org/2000/svg&#x27; viewBox=&#x27;0 0 32 32&#x27;%3E%3Crect width=&#x27;32&#x27; height=&#x27;32&#x27; fill=&#x27;%23FAF8F3&#x27;/%3E%3Cpath d=&#x27;M7 9h18M7 15h18M7 21h11&#x27; stroke=&#x27;%2317130F&#x27; stroke-width=&#x27;2&#x27;/%3E%3Cpath d=&#x27;M20 24l9-9&#x27; stroke=&#x27;%23BE3A21&#x27; stroke-width=&#x27;2.5&#x27;/%3E%3C/svg%3E" data-next-head=""/><title data-next-head="">Document Editor Playground</title><script src="/ai-suggest-shim.js"></script><link rel="preload" href="/_next/static/css/cf691b5428db9625.css" as="style"/><link rel="stylesheet" href="/_next/static/css/cf691b5428db9625.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-b831100014098ec5.js" defer=""></script><script src="/_next/static/chunks/framework-f75312fc4004b783.js" defer=""></script><script src="/_next/static/chunks/main-2d3b8cb51513f72a.js" defer=""></script><script src="/_next/static/chunks/pages/_app-f2f955b00414ffce.js" defer=""></script><script src="/_next/static/chunks/8-20d97a1f65308574.js" defer=""></script><script src="/_next/static/chunks/pages/index-b88b630471f95f38.js" defer=""></script><script src="/_next/static/wEX_uFi3aCdB2_vevWAK-/_buildManifest.js" defer=""></script><script src="/_next/static/wEX_uFi3aCdB2_vevWAK-/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div class="dep-shell"><header class="dep-topbar"><div class="dep-wrap flex flex-wrap items-center justify-between gap-3 py-3"><p class="dep-brand"><strong>Document Editor Playground</strong><span class="dep-brand-mark"> ✎</span></p><button aria-label="Toggle dark mode" data-testid="dark-mode-toggle" class="dep-btn"><span aria-hidden="true">◐</span>Dark mode</button></div><div class="dep-wrap pb-2"><nav class="dep-nav" aria-label="Editors"><a aria-current="page" class="dep-navlink dep-navlink--home group" href="/"><svg aria-hidden="true" viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M2 6.5 8 2l6 4.5V14H2z"></path><path d="M6.4 14V9.4h3.2V14"></path></svg>Home</a><span aria-hidden="true" class="dep-toolbar__sep h-5"></span><a class="dep-navlink group" href="/ckeditor/"><span class="dep-navlink__index" aria-hidden="true">01</span><span>CKEditor 5</span></a><a class="dep-navlink group" href="/tiptap/"><span class="dep-navlink__index" aria-hidden="true">02</span><span>TipTap</span></a><a class="dep-navlink group" href="/toast/"><span class="dep-navlink__index" aria-hidden="true">03</span><span>Toast UI Editor</span></a><a class="dep-navlink group" href="/codex/"><span class="dep-navlink__index" aria-hidden="true">04</span><span>Editor.js</span></a><a class="dep-navlink group" href="/slate/"><span class="dep-navlink__index" aria-hidden="true">05</span><span>Slate</span></a><a class="dep-navlink group" href="/lexical/"><span class="dep-navlink__index" aria-hidden="true">06</span><span>Lexical</span></a></nav></div></header><main class="dep-wrap flex-1 py-10"><section class="max-w-3xl"><p class="dep-eyebrow">Six editors, one workspace</p><h1 class="dep-display mt-2">The same document,<br/>six different editors.</h1><p class="dep-lede mt-4">Every editor below gets the same shell, the same sample documents, and the same diagnostics, so the only thing that varies is the editor itself. Type in each one, load a template, then open the output panel to see what that editor actually hands you: HTML, Markdown, or a JSON node tree.</p><div class="mt-5 flex flex-wrap gap-2"><a class="dep-btn dep-btn--mark" href="/ckeditor/">Start with <!-- -->CKEditor 5<!-- --> β†’</a><a href="https://github.com/eputnam77/DocEditorPlayground" target="_blank" rel="noreferrer" class="dep-btn">This project on GitHub</a></div></section><section class="mt-14"><h2 class="dep-eyebrow">At a glance</h2><p class="dep-muted mt-1 mb-4">The differences that actually change how you build with each one.</p><div class="overflow-x-auto"><table class="dep-compare"><thead><tr><th scope="col">Editor</th><th scope="col">Editing model</th><th scope="col">Source of truth</th><th scope="col">Reads out as</th><th scope="col">Toolbar</th></tr></thead><tbody><tr><th scope="row"><span class="dep-num mr-2">01</span><a class="dep-link font-semibold" href="/ckeditor/">CKEditor 5</a></th><td>Custom tree model with its own change/undo pipeline</td><td><span class="dep-tag dep-tag--mark">HTML</span></td><td><span class="dep-tags"><span class="dep-tag">HTML</span></span></td><td>Ships its own toolbar - the gray bar above the page</td></tr><tr><th scope="row"><span class="dep-num mr-2">02</span><a class="dep-link font-semibold" href="/tiptap/">TipTap</a></th><td>ProseMirror document with a strict, validating schema</td><td><span class="dep-tag dep-tag--mark">HTML</span></td><td><span class="dep-tags"><span class="dep-tag">HTML</span><span class="dep-tag">JSON</span></span></td><td>Headless - every toolbar button on this page is hand-written</td></tr><tr><th scope="row"><span class="dep-num mr-2">03</span><a class="dep-link font-semibold" href="/toast/">Toast UI Editor</a></th><td>Markdown text, mirrored into a WYSIWYG ProseMirror view</td><td><span class="dep-tag dep-tag--mark">Markdown</span></td><td><span class="dep-tags"><span class="dep-tag">Markdown</span><span class="dep-tag">HTML</span></span></td><td>Ships its own icon toolbar plus a Markdown/WYSIWYG switch</td></tr><tr><th scope="row"><span class="dep-num mr-2">04</span><a class="dep-link font-semibold" href="/codex/">Editor.js</a></th><td>Flat array of typed blocks, each owned by its own tool plugin</td><td><span class="dep-tag dep-tag--mark">Block JSON</span></td><td><span class="dep-tags"><span class="dep-tag">JSON</span><span class="dep-tag">HTML</span></span></td><td>Per-block plus/handle controls and an inline selection popup</td></tr><tr><th scope="row"><span class="dep-num mr-2">05</span><a class="dep-link font-semibold" href="/slate/">Slate</a></th><td>Nested JSON node tree you define; immutable, React-rendered</td><td><span class="dep-tag dep-tag--mark">Node tree (JSON)</span></td><td><span class="dep-tags"><span class="dep-tag">JSON</span><span class="dep-tag">HTML</span></span></td><td>None supplied - the toolbar and renderers are written per app</td></tr><tr><th scope="row"><span class="dep-num mr-2">06</span><a class="dep-link font-semibold" href="/lexical/">Lexical</a></th><td>Immutable node tree updated inside transactional editor.update()</td><td><span class="dep-tag dep-tag--mark">Node tree (JSON)</span></td><td><span class="dep-tags"><span class="dep-tag">JSON</span><span class="dep-tag">HTML</span></span></td><td>Headless core - plugins supply behavior, you supply the toolbar</td></tr></tbody></table></div></section><section class="mt-14"><h2 class="dep-eyebrow">The editors</h2><ul class="dep-index mt-3"><li class="dep-entry"><a class="dep-entry__link" href="/ckeditor/"><span class="dep-entry__num" aria-hidden="true">01</span><span class="dep-entry__body"><span class="dep-entry__name">CKEditor 5</span><span class="dep-entry__what">Batteries-included WYSIWYG. The toolbar and UI ship with it.</span><span class="dep-entry__only"><strong>Only here:</strong> <!-- -->The only editor here whose toolbar, dropdowns, and balloon UI come pre-built</span></span><span class="dep-entry__go" aria-hidden="true">Open β†’</span></a></li><li class="dep-entry"><a class="dep-entry__link" href="/tiptap/"><span class="dep-entry__num" aria-hidden="true">02</span><span class="dep-entry__body"><span class="dep-entry__name">TipTap</span><span class="dep-entry__what">Headless ProseMirror. You build every button yourself.</span><span class="dep-entry__only"><strong>Only here:</strong> <!-- -->Schema validation rejects invalid structure instead of silently repairing it</span></span><span class="dep-entry__go" aria-hidden="true">Open β†’</span></a></li><li class="dep-entry"><a class="dep-entry__link" href="/toast/"><span class="dep-entry__num" aria-hidden="true">03</span><span class="dep-entry__body"><span class="dep-entry__name">Toast UI Editor</span><span class="dep-entry__what">The only one here with a real Markdown source mode.</span><span class="dep-entry__only"><strong>Only here:</strong> <!-- -->The only editor here that can round-trip Markdown as its source of truth</span></span><span class="dep-entry__go" aria-hidden="true">Open β†’</span></a></li><li class="dep-entry"><a class="dep-entry__link" href="/codex/"><span class="dep-entry__num" aria-hidden="true">04</span><span class="dep-entry__body"><span class="dep-entry__name">Editor.js</span><span class="dep-entry__what">Not HTML at all - a JSON array of typed blocks.</span><span class="dep-entry__only"><strong>Only here:</strong> <!-- -->The only editor here with no HTML source of truth - the document *is* JSON</span></span><span class="dep-entry__go" aria-hidden="true">Open β†’</span></a></li><li class="dep-entry"><a class="dep-entry__link" href="/slate/"><span class="dep-entry__num" aria-hidden="true">05</span><span class="dep-entry__body"><span class="dep-entry__name">Slate</span><span class="dep-entry__what">A toolkit, not an editor. You define the schema.</span><span class="dep-entry__only"><strong>Only here:</strong> <!-- -->You define every node and mark type; there is no built-in schema to work around</span></span><span class="dep-entry__go" aria-hidden="true">Open β†’</span></a></li><li class="dep-entry"><a class="dep-entry__link" href="/lexical/"><span class="dep-entry__num" aria-hidden="true">06</span><span class="dep-entry__body"><span class="dep-entry__name">Lexical</span><span class="dep-entry__what">Meta&#x27;s successor to Draft.js. Small, fast, plugin-driven.</span><span class="dep-entry__only"><strong>Only here:</strong> <!-- -->Smallest core here; every capability arrives as a separately imported plugin</span></span><span class="dep-entry__go" aria-hidden="true">Open β†’</span></a></li></ul></section><section class="mt-14 grid gap-6 md:grid-cols-3"><div><h3 class="dep-subtitle">1. Type in it</h3><p class="dep-muted mt-1">Each editor opens with the same Lorem Ipsum draft already loaded, so you can select text and try bold, italic, headings, and lists immediately. Every toolbar button names itself on hover.</p></div><div><h3 class="dep-subtitle">2. Load the same template</h3><p class="dep-muted mt-1">The three sample documents - release notes, a research article, a contract - are identical across all six editors. Watch which structure survives the import and which gets flattened.</p></div><div><h3 class="dep-subtitle">3. Read the output</h3><p class="dep-muted mt-1">The output panel on each page shows the live document as HTML, JSON, and Markdown. A grayed-out tab means that editor cannot produce that format at all - which is often the deciding factor.</p></div></section><footer class="dep-foot mt-16"><p class="dep-muted">Document Editor Playground Β· a neutral bench for comparing open-source editors. Nothing you type here is saved or sent anywhere.</p></footer></main></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"wEX_uFi3aCdB2_vevWAK-","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html>