Skip to content

usecanvas/canvas-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4c346cc · Apr 7, 2017
Mar 9, 2017
Jan 17, 2017
Oct 18, 2016
Sep 30, 2016
Jan 27, 2017
Nov 3, 2016
Jan 27, 2017
Dec 15, 2016
Aug 25, 2016
Aug 25, 2016
Aug 25, 2016
Dec 12, 2016
Oct 18, 2016
Jan 27, 2017
Aug 25, 2016
Feb 2, 2017
Apr 7, 2017
Aug 25, 2016
Mar 31, 2017
Jan 27, 2017
Apr 7, 2017
Jan 27, 2017
Aug 30, 2016
Dec 15, 2016
Feb 14, 2017
Sep 30, 2016

Repository files navigation

CanvasEditor

Travis

This README outlines the details of collaborating on this Ember addon.

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Callbacks

There are a number of callbacks that can be passed to the editor:

  • onBlockContentUpdatedLocally: Receives a block with prevContent and content properties 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.

Versioning

To release a new version of CanvasEditor:

  • npm run version major|minor|patch to increment the version
  • git push origin master to push the increment commit
  • git push origin master --tags to push the increment tag
  • npm publish to release to NPM

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://ember-cli.com/.