A real time collaborative editor for OpenTok using CodeMirror and ot.js. More information in this blog article.
npm install opentok-editor
require('opentok-editor');
require('opentok-editor/opentok-editor.css');
bower install opentok-editor
or clone this repo and include the opentok-editor.js
or opentok-editor.min.js
file.
See index.html. You will need to replace the values for API_KEY, SESSION_ID and TOKEN with values using your OpenTok account. Then you can run npm start
and go to localhost:8080 in your browser.
Keep all custom changes to the src/
files and then run:
npm install
Which will install all bower components and run the gulp build to build the opentok-editor.js
and opentok-editor.min.js
files.