Live concurrent editing in your app. ShareJS is an Operational Transform library for NodeJS & browsers.
Questions tagged [sharejs]
19 questions
3
votes
0 answers
Node.js (with Express.js) not working with Share.js
I'm following the docs on the github of Share.js but can't seem to get it to work
https://github.com/share/ShareJS/wiki/Getting-started-%280.6.x%29
I built a base app with the Express generator. It put the main server file inside /bin/www which is…

Ivan Lesar
- 65
- 1
- 5
2
votes
1 answer
ShareDB with other websocket events
I am trying to use Node.js WebSockets with sharedb. Here is what I have so far
var http = require('http');
var express = require('express');
var ShareDB = require('sharedb');
var WebSocket = require('ws');
var WebSocketJSONStream =…

hopelessmuffins
- 315
- 1
- 11
2
votes
2 answers
Unable to install ShareJS with npm
Using VM (vagrant) Ubuntu 14.04.2 LTS.
npm and nodeJS versions are up to date.
I'm trying to install shareJS via
sudo npm install share@"<0.7"
but this cause npm errors.
npm ERR! Linux 3.13.0-55-generic
npm ERR! argv "node" "/usr/bin/npm" "install"…

Svyat
- 142
- 1
- 2
- 14
1
vote
1 answer
ShareDB with JSON-Patch (CRF-6902)
If I read the documentation correctly, one needs to create "JSON0 OT Type" records for any change in the target data-model and send these to the ShareDB backend for transformation and forwarding to other clients. There also seems to be a newer…

mvermand
- 5,829
- 7
- 48
- 74
1
vote
1 answer
ReferenceError: Cannot access 'ShareJS' before initialization
I was building a collaborative text editor web application using meteor. For the same I added a package named "mizzao:sharejs-codemirror" and after that my application crashed on starting and displayed following error
ReferenceError: Cannot access…

Shantanu Srivastava
- 11
- 1
1
vote
0 answers
Issues with integrating Quill and ShareDB with `quill-cursors`
I'm trying to integrate Quill and ShareDB with a package called quill-cursors found here. The example is available here: https://github.com/pedrosanta/quill-sharedb-cursors. The demo works well, but when running on my local machine, I've encountered…

happy
- 11
- 2
1
vote
0 answers
How can we collaborate over div's with contenteditable property enabled in ShareJs?
I am using textarea property in sharejs to edit documents .
I wanted to know how can I collaborate div's with contenteditable property enabled ,so that I can implement rich text editors in my app using sharejs.

Jitin Maherchandani
- 667
- 2
- 7
- 15
1
vote
1 answer
Setting up ShareJS in Meteor
I am having trouble in setting up meteor-share.js.
Basically I followed their README.
{{> sharejsAce docid=docid id="editor"}}
What is the second docid here? I guess it's a helper function of the template that contains the unique name of the…

sangwonlee
- 33
- 3
1
vote
0 answers
Browser channel throws Error parsing forward channel Error: Invalid maps
I'm using browser channel to create a web socket in order to use sharejs and code mirror on my site. As the client tries to live-update the db on my server im continuously getting the error "Error parsing forward channel Error: Invalid maps". What…

Phil Dornfeld
- 105
- 4
1
vote
1 answer
Get count of documents without loading the whole collection in DerbyJS 0.6
How can I count the results of a query without loading the whole resultset into memory?
The easy way of counting documents returned by a query would be:
var q = model.query('mycollection', { date: today });
q.fetch(function() {
var length =…

Roman
- 5,888
- 26
- 47
1
vote
0 answers
I keep getting a console warning "Ignoring attempt to ingest data in state ready" from share.uncompressed.js file
I am using sharejs with primus for real time editing and any time i am about to use or start editing i get the warning "Ignoring attempt to ingest data in state ready" from the share.uncompressed.js script in my browser. Please does anyone know why…

makinwab
- 43
- 5
1
vote
1 answer
Import "normal" MongoDB collections into DerbyJS 0.6
Same situation like this question, but with current DerbyJS (version 0.6):
Using imported docs from MongoDB in DerbyJS
I have a MongoDB collection with data that was not saved through my
Derby app. I want to query against that and pull it into my…

Roman
- 5,888
- 26
- 47
0
votes
0 answers
mizzao:sharejs-codemirror is not working in meteor
I added mizza:sharejs-codemirror in meteor but it is giving error "cannot access sharejs without intialijation"this is the error
and the html code is:
textcircle
Welcome to TextCircle
…
0
votes
1 answer
mizzao:sharejs-codemirror throwing error in my meteor app
I just created a basic project using meteor create CodeCollab. Then I installed the "mizzao:sharejs-codemirror" package using meteor add mizzao:sharejs-codemirror command. The installation works fine without any errors. But when I start the app I…

Sherry
- 59
- 5
0
votes
1 answer
How to determine OT Text Diff
I am trying to implement sharedb operations onto my front end code. I currently have it so that it submits an operation (https://github.com/ottypes/json0), specifically text0, when my react component triggers its onChange event. For example:
If my…

hopelessmuffins
- 315
- 1
- 11