This README outlines the details of collaborating on this Ember addon.
- git clonethis repository
- npm install
- bower install
- ember serve
- Visit your app at http://localhost:4200.
There are a number of callbacks that can be passed to the editor:
- onBlockContentUpdatedLocally: Receives a block with- prevContentand- contentproperties when a block's content was updated locally.
- onNewBlockInsertedLocally: Receives an index and a new block object when a new block was inserted locally.
- onBlockDeletedLocally: Receives an index and a block after the block was deleted locally.
To release a new version of CanvasEditor:
- npm run version major|minor|patchto increment the version
- git push origin masterto push the increment commit
- git push origin master --tagsto push the increment tag
- npm publishto release to NPM
- npm test(Runs- ember try:testallto test your addon against multiple Ember versions)
- ember test
- ember test --server
- ember build
For more information on using ember-cli, visit http://ember-cli.com/.