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.
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.
Classic and Blocks modes
A toolbar editor and a Notion-style block editor on one engine. Switching keeps the document, caret and undo history.
Databases
Table, board, list, gallery, calendar and timeline views with typed properties, formulas, relations, rollups, filters and sorts.
Real-time collaboration
Yjs binding with presence, offline recovery, comments, suggestions and version history.
Extensions all the way down
Every built-in feature is an extension. Add nodes, marks, commands, shortcuts, menus and renderers through the same API.
Backend sync & events
Stable block IDs, per-block events and a change feed that maps cleanly onto your API or database.
HTML, Markdown, JSON, SSR
Lossless JSON, clean HTML and Markdown import/export, and server-side rendering for SEO — no DOM required.
Vanilla, React and Vue 3
A single-file browser module for no-build pages, plus first-class React and Vue components and hooks.
Themeable or headless
CSS variables, dark mode, custom icons and labels — or render every control yourself from public state.
Accessible and fast
Native input and IME support, keyboard-first menus, screen-reader labels, tested in Chromium, Firefox and WebKit.
Quick start
Use it from a CDN with no build step, or install it from npm for your framework.
<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>import { createEditor } from '@buffmomo/zeditor';
import '@buffmomo/zeditor/style.css';
const z = createEditor({
element: '#editor',
mode: 'block', // or 'classic'
ui: { toolbar: ['undo', 'redo', '|', 'bold', 'italic', 'link'] },
autosave: { save: (doc) => api.save(doc) },
});import { ZEditor } from '@buffmomo/zeditor/react';
import '@buffmomo/zeditor/style.css';
export function Notes() {
return <ZEditor mode="block" placeholder="Type / for commands"
onChange={(editor) => save(editor.getJSON())} />;
}<script setup>
import { ZEditor } from '@buffmomo/zeditor/vue';
import '@buffmomo/zeditor/style.css';
</script>
<template>
<ZEditor mode="classic" :options="{ placeholder: 'Write something…' }"
@change="(editor) => save(editor.getJSON())" />
</template>Live examples
Each example runs the same build that is published to npm.
Playground
Every feature with toggles, themes, a custom toolbar, a document inspector, import/export, review and sample databases.
Open →Plain HTML
One HTML file, no framework and no build step: modes, save and reload JSON.
Open →Collaboration
Two clients side by side with presence and offline/reconnect. Add ?room=name to use two tabs.
Open →React
React 19 in Strict Mode with a custom issue-reference node and an async # menu.
Open →Vue 3 + Vuetify
A Vuetify toolbar driving the headless editor, plus a custom callout block.
Open →