Editing surfaces for documents, code, chat and formulas, composed over the headless editor core.
The editor comes in two halves. The core, @zeroxsolutions/editor-core, is an npm package: the document model, its
JSON, the commands and the feature API, with no React and no styles. The chrome is the registry items on these
pages: the React surfaces, their toolbars and menus, the document features and the styles, which install into your
project like any other item, under components/editor/.
Install the core#
Every item that imports the core lists it as a dependency, so the CLI installs it with the first one. To install it on its own:
pnpm add @zeroxsolutions/editor-coreWhere to start#
| To edit | Start from |
|---|---|
| A document | Document Editor |
| A code file | Code Editor |
| A chat message | Chat Input |
| An email body | Email Editor |
| An SMS body | SMS Editor |
| A formula | Math Editor |
| A diagram | Mermaid Editor |
The document editor ships the standard kit of headings, lists, tasks and marks. Every other kind of block, such as a table, a callout or a formula, is an item of its own that depends on it, so a project installs only the blocks it draws.