Skip to content
experiment with wiring automerge up to ProseMirror
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src committing in progress state Apr 19, 2019
.gitignore
.prettierrc
LICENSE.md
README.md
demo.html initial commit of automerge experiment Feb 26, 2018
demo.js committing in progress state Apr 19, 2019
package-lock.json committing in progress state Apr 19, 2019
package.json committing in progress state Apr 19, 2019
rollup.config.js initial commit of automerge experiment Feb 26, 2018

README.md

prosemirror + automerge

This is a 100% experimental, not-actually-working-yet attempt to get Automerge (p2p-friendly CRDT implementation) working with ProseMirror (best-in-class rich text library).

The basic idea is to have a ProseMirror plugin that works similarly to the collab plugin: steps which originate from the editor are translated to an Automerge document, and changes to a "remote" Automerge document are translated back to the ProseMirror document as steps.

A demo implementation, with two editors that are synced via Automerge, be viewed by running npm run build & opening demo.html in the browser. Inserting characters works, deleting (and basically everything else) doesn't work.

You can’t perform that action at this time.