Pregunta

I'm using the Meteor ShareJS package for concurrent editing. I am trying to write additional values to items in the docs collection. Things like titles, etc. It seems to work until a document is edited in the ACE editor to the point where a new snapshot is created. At this point all of the extra fields are cleared.

¿Fue útil?

Solución

I'm the maintainer of the meteor-sharejs package.

The recommended way to use the package is to keep all metadata in a Meteor Collection, and not in the ShareJS docs collection. This is because they are basically separate software stacks that do not talk to each other. It's also possible that you are using a docs collection for your documents which is the same name as the ShareJS collection; then they would be overwriting each other.

If you'd like to see ShareJS not head in the direction of being compatible only with Derby, I'd encourage you to chip in at https://github.com/share/ShareJS/issues/277.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top