GithubHelp home page GithubHelp logo

aullman / opentok-editor Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 12.0 139 KB

A real time collaborative editor for OpenTok using CodeMirror and ot.js

License: MIT License

CSS 0.37% JavaScript 97.38% HTML 2.26%

opentok-editor's People

Stargazers

 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

opentok-editor's Issues

If two participants delete at the same time it breaks the editor

Yeah, I managed to reproduce the problem by deleting from 2 editors at the same time:

  1. Open up the editor on 2 separate machines
  2. Click into the editor at the same point on both machines
  3. Repeatedly press the delete button on both machines simultaneously

Result: You get an error in the console about "base length not equal" and now updates in the editor are no longer shared between the two machines.

Out of sync when typing on same cursor position on several clients

hi all ,i have a issue like above but the situation is like below
"out of sync when typing on same cursor position on several clients" it was giving error like below
1."The operation's base length must be equal to the string's length"
and 2."Both operations have to have the same base length"
3."The base length of the second operation has to be the target length of the first operation" then it terminated the sync between the docs ,and i know these are from the library but i want to show an alert about what went wrong but still the code sync was not coming to normal stage and being unresponsive until i refresh the page .

please help me on this, regarding making code editor responding back with previously valid code (means roll back) ,please suggest me any possible ways

thank you very much in advance

Support for code mirror 5.9

When using this code with the latest version of code mirror the clike languages do not work. Once you get past a single line these errors occurs constantly.

The base length of the second operation has to be the target length of the first operation
Cannot compose operations: first operation is too long.

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.