I’d like to share Stilo, an open-source (MIT) WYSIWYG editor built on ProseMirror. Version 0.2.0 is now out, and there is a live demo you can try in the browser:
Tables (on top of prosemirror-tables): header row, column resize, and handles over rows and columns
Find and replace with match count, plus a word and character count
Images: paste image files, resize them with side handles
Code blocks, task lists, font family and size, text alignment, line spacing, text case
Paste cleanup for Word and Google Docs content
Performances
One of Stilo’s main goals is to stay fast on very large documents. The demo site has a performance page where you can load documents with up to 20,000 paragraphs and try it yourself: https://kojak8791.github.io/stilo-editor/performance.html
It is still a 0.x preview, so APIs may change. Feedback is very welcome, especially from people who know ProseMirror’s internals better than I do. And of course, a big thank you to Marijn for ProseMirror itself.
Stilo 0.3.0 is out, with wrappers for React, Vue and Svelte:
React (stilo-editor/react): a StiloEditor component and a useStiloEditor hook for your own UI. React 18 and 19, SSR, and marked 'use client' for Next.js App Router.
Vue (stilo-editor/vue): a component and a useStiloEditor composable. Vue 3.4+, SSR.
Svelte (stilo-editor/svelte): a component for Svelte 5, plus actions for Svelte 4 and 5.
One package for everything: the wrappers are subpath exports of stilo-editor, like the UI.
Read-only mode is now strict: with editable: false, commands that would change the document return false (also from .can()), and the toolbar disables its buttons.
Select all on huge documents is much faster: the toolbar refresh after select all on 50,000 paragraphs went from 11 s to 1 s.
Thanks — good point. Today the wrappers don’t take a plugins prop, but they take extensions, and an extension can contribute ProseMirror plugins, so existing plugins go in at creation time, not after mounting:
The same works for new Editor({ extensions }), the Vue component and the Svelte component/actions. The plugin factory also gets { editor, schema, options } if a plugin needs them. editor.view (the EditorView), editor.state and editor.schema are exposed too, and you reach the editor through onReady, useStiloEditor or the Svelte actions. They’re documented as an escape hatch.
You’re right that this path wasn’t documented: it is now, with the details (commands, keymaps, input rules, typing) in API.md §4.1 and in each framework guide.
Stilo 0.5.0 is out, so here is what changed since 0.3.0:
0.5.0
Compact toolbar for phones and narrow panels: layout: 'compact', or 'auto' to switch below a width. Undo, redo, bold, italic and four group buttons that open their items in a second row.
Figures: an image in its own block with a caption under it (<figure>, <figcaption>). The caption is edited in the document and takes the editor’s marks and line breaks. A new image dialog inserts a figure from a URL or a local file, and image files can be dropped into the editor.
Lighter popovers: no borders, translucent background, one field height everywhere.
Your own extensions are now documented: existing ProseMirror plugins, keymaps and input rules go in through defineExtension, also in the React, Vue and Svelte wrappers (API.md §4.1).
0.4.0
Dark theme, chosen by the page’s color-scheme (no class, no JS).
Full screen toolbar item.
Option markdownShortcuts: false to turn the input rules off.
Tested with the latest ProseMirror packages in range (prosemirror-view 1.43, prosemirror-schema-list 1.6.1, prosemirror-history 1.5.2).