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 document that I want to synchronize?
What's the first docid
? is this keyword for meteor-share.js?
Once I include this in a html (or template), what do I need to do in the js side (client/server?)? Is there anything I should do make the template (sharejsAce) to share text?
I do not maintain multiple editors in a page so I am not sure what I should include and exclude from the demo.
I wonder if this is simply a bug in the API. when I changed to codemirror editor it just worked. The error was saying:
Uncaught TypeError: Cannot read property 'range' of undefined