Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prosemirror + automerge

You almost certainly want to use peritext to do what I was trying to do here!

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.

About

experiment with wiring automerge up to ProseMirror

Resources

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages