ember-mobiledoc-editor
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -43,3 +43,3 @@ import Ember from 'ember'; | ||
// merge in named options with the `options` property data bag | ||
// merge in named options with the `options` property data-bag | ||
editorOptions: computed(function() { | ||
@@ -112,9 +112,9 @@ let options = this.get('options'); | ||
addCard(cardName, data={}) { | ||
this._addCard(cardName, data); | ||
addCard(cardName, payload={}) { | ||
this._addCard(cardName, payload); | ||
}, | ||
addCardInEditMode(cardName, data={}) { | ||
addCardInEditMode(cardName, payload={}) { | ||
let editMode = true; | ||
this._addCard(cardName, data, editMode); | ||
this._addCard(cardName, payload, editMode); | ||
}, | ||
@@ -205,3 +205,3 @@ | ||
cardName, | ||
data: payload, | ||
payload, | ||
callbacks: env, | ||
@@ -286,7 +286,7 @@ editor, | ||
_addCard(cardName, data, editMode=false) { | ||
_addCard(cardName, payload, editMode=false) { | ||
let editor = this.get('editor'); | ||
let section = editor.activeSection; | ||
editor.run(postEditor => { | ||
let card = editor.builder.createCardSection(cardName, data); | ||
let card = editor.builder.createCardSection(cardName, payload); | ||
if (editMode) { | ||
@@ -293,0 +293,0 @@ editor.editCard(card); |
import MOBILEDOC_KIT_VERSION from 'mobiledoc-kit/version'; | ||
const EDITOR_VERSION = '0.3.5'; | ||
const EDITOR_VERSION = '0.3.6'; | ||
const VERSION = { | ||
@@ -4,0 +4,0 @@ EDITOR_VERSION, |
{ | ||
"name": "ember-mobiledoc-editor", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "A Mobiledoc editor for Ember.js apps", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -233,7 +233,7 @@ ## ember-mobiledoc-editor | ||
* `data`, the data payload for this card. *Note* the data is disconnected from the card's payload in the serialized mobiledoc. To update the mobiledoc payload, use the `saveCard` or `mutData` actions. | ||
* `payload`, the payload for this card. *Note* the payload object is disconnected from the card's payload in the serialized mobiledoc. To update the mobiledoc payload, use the `saveCard` action. | ||
* `editCard`, an action for toggling this card into edit mode (this action is a no-op if the card is already in edit mode) | ||
* `removeCard`, an action for removing this card (see the ["remove" Mobiledoc card action](https://github.com/bustlelabs/mobiledoc-kit/blob/master/CARDS.md#available-hooks)) | ||
* `saveCard`, an action accepting new data for the card payload, then saving | ||
that data and toggling this card into display mode can optionally be passed an extra `false` argument to avoid toggling to display mode (see the ["save Mobiledoc card action](https://github.com/bustlelabs/mobiledoc-kit/blob/master/CARDS.md#available-hooks)) | ||
* `saveCard`, an action accepting new payload for the card, then saving | ||
that payload and toggling this card into display mode can optionally be passed an extra `false` argument to avoid toggling to display mode (see the ["save Mobiledoc card action](https://github.com/bustlelabs/mobiledoc-kit/blob/master/CARDS.md#available-hooks)) | ||
* `cancelCard`, an action toggling this card to display mode without saving (this action is a no-op if the card is already in display mode) (see the ["cancel Mobiledoc card action](https://github.com/bustlelabs/mobiledoc-kit/blob/master/CARDS.md#available-hooks)) | ||
@@ -251,2 +251,3 @@ * `cardName` the name of this card | ||
* `git tag v<versionNumber>` | ||
* `git push origin --tags` | ||
* `npm publish` | ||
@@ -253,0 +254,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49052
274