node.js - How to get meteor-sharejs documents text -
i using meteor-sharejs
i add package
meteor add mizzao:sharejs-ace
now in view, add document
{{> sharejsace docid="javascriptdoc" id="editor"}}
i know meteor-sharejs creates ops collection , docs.
my questions how grab current raw text of of "javascriptdoc" document on server send somewhere else. listen changes , grab content.
you want check sharejs api this.
mizzao:sharejs
using sharejs 0.6.3; here server api. want use getsnapshot
function.
the package makes sharejs available in sharejs.model
, try sharejs.model.getsnapshot(...)
on server.
note: wrote package.
Comments
Post a Comment