Skip to content

Files

Latest commit

89bc6ba · May 3, 2025

History

History

prosemirror-versions

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 3, 2020
Dec 6, 2023
Dec 12, 2023
Dec 29, 2019
May 3, 2025
Sep 4, 2019
Mar 25, 2020
Dec 29, 2019
Apr 12, 2024

ProseMirror + Versions Demo

y-prosemirror / y-websocket / Live Demo

This is a demo of a ProseMirror editor that was made collaborative with Yjs & y-prosemirror. This demo uses the prosemirror-example-setup as a configuration. Learn more about how you can build your own custom editor with ProseMirror in their documentation.

In this variation of the ProseMirror demo, we allow you to create versions and render the differences and highlight the changes by a unique user-color. When you enable "Live Tracking", your editor becomes unresponsive and you can see diff created from edits from other users happening in real-time. Click on a created snapshot to render the differences to the previous snapshot.

The snapshot API is very versatile and allows you to render the differences between any two snapshots. In this examples, we simply created a linear version history. But using the same API you can model branching & merging as well.

Quick Start

npm i
npm start
# Project is running at http://localhost:8080/