Skip to content

Collaborative code editor using Ace Editor, Code-Mirror, and ShareDB

Notifications You must be signed in to change notification settings

gkjohnson/collaborative-code-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

collaborative-code-editor

Collaborative Text Editor example with selection synchronization, active user display, and real time text collaboration using ShareDB. The purpose of this repo is to give a basic example setup for ShareDB with an Ace Editor client and Code-Mirror client.

Editor Example

Details

Uses ot-text as an example format, but could easily be updated to use ot-text-tp2 or other OT formats.

Because ShareDB requires precompiling source to load, a pre-built version of sharedb is copied from this repo.

How To Run

Run npm install.

Then npm start.

A static file server will start on port 80, and the ShareDB connection on port 8080. Load up http://localhost/clients/ace-editor.html or http://localhost/clients/code-mirror.html to get collaborating!

Releases

No releases published

Packages

No packages published