mizzao / meteor-sharejs

Meteor smart package for transparently adding ShareJS editors to an app
MIT License
225 stars 53 forks source link

ShareJS object not exported? #76

Closed edemaine closed 8 years ago

edemaine commented 8 years ago

I just updated, but now accessing the ShareJS object (on the server, in main code or in a method) reports ReferenceError: ShareJS is not defined. I assume things moved in 0.9.0, but the documentation doesn't seem to have changed. Where can I find this object now? (I'm confused, because I see export const ShareJS = ShareJS || {}; in sharejs-server.js...)

edemaine commented 8 years ago

I guess I'm still getting used to the new Meteor package system... This is now necessary to access ShareJS:

import {ShareJS} from 'meteor/mizzao:sharejs'

(in CoffeeScript, this must be put in back ticks)

This should probably be added to the README where you mention accessing ShareJS.model...

DavidSichau commented 8 years ago

Thanks I added it to the readme