Giter Site home page Giter Site logo

gkjohnson / collaborative-code-editor Goto Github PK

View Code? Open in Web Editor NEW
34.0 5.0 10.0 139 KB

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

HTML 90.08% JavaScript 9.92%
ace code ace-editor sharedb collaboration code-editor code-mirror text-collaboration

collaborative-code-editor's Introduction

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!

collaborative-code-editor's People

Contributors

gkjohnson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

collaborative-code-editor's Issues

Enable new documents with query

Allow for multiple documents use the query parameters from the page

There is commented-out code that creates and subscribes to the right ShareDB document, but the anchor and user display socket needs to subscribe a be tracked per document, whereas it's global right now

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.