v0.2.0 · Read the changelog →

The rich-text and block editor
for the web

One engine, two interfaces: a classic toolbar editor and a Notion-style block editor, with databases, real-time collaboration and zero runtime dependencies. For plain HTML, React and Vue 3.

$npm install @buffmomo/zeditor
Live editor — try typing, select text, or switch to Blocks and type “/”

This is the real package (@buffmomo/zeditor@0.2.0) running on this page.

Everything a document editor needs

Written from scratch in TypeScript with zero runtime dependencies in the base bundle. No ProseMirror, Lexical, Slate or Quill underneath.

Quick start

Use it from a CDN with no build step, or install it from npm for your framework.

html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@buffmomo/zeditor@0.2.0/dist/style.css" />
<div id="editor"></div>
<script type="module">
  import { createEditor } from 'https://cdn.jsdelivr.net/npm/@buffmomo/zeditor@0.2.0/dist/zeditor.browser.js';

  const z = createEditor({ element: '#editor', placeholder: 'Write something…' });
  // z.setMode('block');  z.getJSON();  z.setJSON(saved);
</script>

Read the full getting-started guide →

Live examples

Each example runs the same build that is published to npm.

0runtime dependencies
115 kBgzipped browser bundle
3browsers tested on every change
MITlicensed
Esc