Documentation
Scriviamo is a block-based rich text editor for the web. Its name is Italian for "we write" and "let's write", for an editor several people can write in at once.
A document is an ordered list of blocks, called nodes: paragraphs, headings, lists, tables, images, and any node types you add. Each node edits its own content. The editor saves documents as JSON and also reads and writes HTML, Markdown and plain text.
Scriviamo is written in TypeScript and ships as ES modules. A free base package holds the editor and the common node types. Add-ons add more node types and features, such as forms, media and real-time collaboration.
Its interface uses Bootstrap 5's styles and Bootstrap Icons, which a page loads alongside it; see Getting started.
Contents
| Page | What it covers |
|---|---|
| Getting started | Building the package, loading it in a page, and creating an editor |
| Packages and add-ons | What the base package and each add-on contain, and how they load |
| Moving from other editors | Loading documents saved by Editor.js, TipTap, ProseMirror, Quill, Lexical, SunEditor and CKEditor |
| React and Next.js | The React component, saving documents, and server rendering with Next.js |
| Vue and Nuxt | The Vue component, v-model, saving documents, and server rendering with Nuxt |
| Angular | The Angular component, forms, saving documents, and server rendering |
| The web component | <scriviamo-editor>, for any framework or none, and in forms |
| The editor | Options, properties, working with nodes and the selection, commands, and events |
| Node types | The built-in node types, their JSON names, and the properties every node has |
| Text and formatting | Rich text, text styles, formatting commands, and font choices |
| The toolbar | The built-in tools, adding your own, and saving each user's arrangement |
| Undo, search, statistics and autosave | Undo and redo, find and replace, word counts, the status bar, and autosave |
| Comments and suggestions | Comment threads, and suggestions such as @-mentions |
| Data table | Tables loaded from a REST API: requests, columns and paging |
| AI assistant | Rewriting, fixing, translating and continuing text with a language model you choose |
| PDF export | Page size, margins, headers, footers and page numbers |
| Templates | Reusable blocks and documents, with fields filled in as they're inserted |
| Footnotes | Numbered references and their notes, and how they import and export |
| Math and diagrams | Formulas in LaTeX, drawn with KaTeX, as blocks or inside text, and diagrams in Mermaid |
| Steps, timelines and tabs | Numbered steps, timelines and tabbed panels that hold blocks |
| Files, galleries, maps and embeds | File attachments, image galleries, maps, and the sites embeds play from |
| Charts | Charts drawn from a table in the document, and how a table's numbers are read |
| Signatures | Signature fields, signed by drawing or typing, and in fillable PDFs |
| Dates and statuses in text | Date chips in the reader's language, and status pills from your own set |
| Outline, focus mode, readability and dictation | Aids for writing: a heading tree, focus mode, readability in the status bar, and voice typing |
| Word, EPUB, OpenDocument, Notion and Confluence | Importing and exporting Word documents, books, OpenDocument files, and wiki exports |
| Version history | Saving, comparing and restoring versions, kept in the browser, on your server, or shared |
| Track changes | Suggesting mode, and accepting and rejecting changes |
| Locked blocks, fields and variables | Locking a document's fixed structure, fill-in fields, and live variables from your data |
| Task lists | Checklist items as tasks with assignees and due dates, and reviewing them |
| Documents in a git repository | Opening documents from GitHub, and saving versions to pull requests |
| Keyboard shortcuts | Every key the editor responds to, by block type, on macOS and Windows |
| Accessibility | How the editor and its documents meet WCAG 2.2, the audit, and the accessibility checker |
| Pickers, menus and dialogs | Popups that open from the toolbar or a node, the ready-made pickers, and dialogs |
| Writing node types | Adding your own node types and editor extensions |
| Schema validation | Which node types and content documents may have, checked in the browser and on the server |
| Server rendering | Turning saved documents into HTML, Markdown or text on a server, with no browser |
| Import and export | JSON, HTML, Markdown and plain text; uploading files; exporters, stylesheets and theme colors |
| The inspector | The property panel that shows and edits node settings |
| Node settings | How node types describe their settings, and adding your own |
| Localization | Interface text, the built-in languages, locale packs, and add-on strings |
| Collaboration | Sharing a document between editors through a collaboration server |
| The collaboration protocol | The messages between clients and servers, for writing your own |