Skip to content

Commit

Permalink
chore(docs): change bustlelabs urls to bustle (#136)
Browse files Browse the repository at this point in the history
The github name changed from bustlelabs to bustle. Updates URLs
referenced in this package accordingly.
  • Loading branch information
bantic committed Aug 8, 2017
1 parent 3a3804f commit 1006ced
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
## ember-mobiledoc-editor

[![npm version](https://badge.fury.io/js/ember-mobiledoc-editor.svg)](https://badge.fury.io/js/ember-mobiledoc-editor)
[![Build Status](https://travis-ci.org/bustlelabs/ember-mobiledoc-editor.svg)](https://travis-ci.org/bustlelabs/ember-mobiledoc-editor)
[![Build Status](https://travis-ci.org/bustle/ember-mobiledoc-editor.svg)](https://travis-ci.org/bustle/ember-mobiledoc-editor)
[![Ember Observer Score](https://emberobserver.com/badges/ember-mobiledoc-editor.svg)](https://emberobserver.com/addons/ember-mobiledoc-editor)

A Mobiledoc editor written using Ember.js UI components and
[Mobiledoc Kit](https://github.com/bustlelabs/mobiledoc-kit).
[Mobiledoc Kit](https://github.com/bustle/mobiledoc-kit).

Additionally, ember-mobiledoc-editor supports the creation of
[Mobiledoc cards](https://github.com/bustlelabs/mobiledoc-kit/blob/master/CARDS.md)
[Mobiledoc cards](https://github.com/bustle/mobiledoc-kit/blob/master/CARDS.md)
as Ember components. This is a significant improvement for developer
ergonomics over using Mobiledoc cards directly.

Expand Down Expand Up @@ -256,7 +256,7 @@ For example:

Mobiledoc supports "cards", blocks of rich content that are embedded into a
post. For more details on the API for authoring cards in vanilla JavaScript, see
[CARDS.md](https://github.com/bustlelabs/mobiledoc-kit/blob/master/CARDS.md).
[CARDS.md](https://github.com/bustle/mobiledoc-kit/blob/master/CARDS.md).

ember-mobiledoc-editor comes with a handle helper for using Ember
components as the display and edit modes of a card. Create a list of cards
Expand Down Expand Up @@ -291,20 +291,20 @@ The component will be provided with the following `attrs`:

* `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))
* `removeCard`, an action for removing this card (see the ["remove" Mobiledoc card action](https://github.com/bustle/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))
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/bustle/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/bustle/mobiledoc-kit/blob/master/CARDS.md#available-hooks))
* `cardName` the name of this card
* `editor` A reference to the [mobiledoc-kit](https://github.com/bustlelabs/mobiledoc-kit)
* `editor` A reference to the [mobiledoc-kit](https://github.com/bustle/mobiledoc-kit)
* `postModel` A reference to this card's model in the editor's abstract tree. This may be necessary to do programmatic editing (such as moving the card via the `postEditor#moveSection` API that Mobiledoc editor provides)


### Component-based Atoms

Mobiledoc supports "atoms", inline sections of rich content that are embedded into a line of text in your post.
For more details on the API for authoring atoms in vanilla JavaScript, see
[ATOMS.md](https://github.com/bustlelabs/mobiledoc-kit/blob/master/ATOMS.md).
[ATOMS.md](https://github.com/bustle/mobiledoc-kit/blob/master/ATOMS.md).

ember-mobiledoc-editor comes with a handle helper for using Ember
components as an atom. Create a list of atoms using the `createComponentAtom` helper:
Expand Down Expand Up @@ -333,7 +333,7 @@ And pass that list into the `{{mobiledoc-editor}}` component:

ember-mobiledoc-editor exposes two test helpers for use in your acceptance tests:
* `insertText(editorElement, text)` -- inserts text into the editor (at the end)
* `run(editorElement, callback)` -- equivalent to [`editor.run`](http://bustlelabs.github.io/mobiledoc-kit/demo/docs/Editor.html#run), it calls the callback with the `postEditor`
* `run(editorElement, callback)` -- equivalent to [`editor.run`](http://bustle.github.io/mobiledoc-kit/demo/docs/Editor.html#run), it calls the callback with the `postEditor`

Example usage:
```javascript
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"doc": "doc",
"test": "tests"
},
"repository": "bustlelabs/ember-mobiledoc-editor",
"repository": "bustle/ember-mobiledoc-editor",
"scripts": {
"build": "ember build",
"start": "ember server",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ test('it adds a card and focuses the cursor at the end of the card', function(as
});
});

// See https://github.com/bustlelabs/ember-mobiledoc-editor/issues/86
// See https://github.com/bustle/ember-mobiledoc-editor/issues/86
test('can add a card to a blank post', function(assert) {
assert.expect(3);

Expand Down Expand Up @@ -1035,7 +1035,7 @@ test('calls `unknownAtomHandler` when it renders an unknown atom', function(asse
`);
});

// See https://github.com/bustlelabs/ember-mobiledoc-editor/issues/90
// See https://github.com/bustle/ember-mobiledoc-editor/issues/90
test('does not rerender atoms when updating text in section', function(assert) {
let renderCount = 0;
this.registerAtomComponent('ember-atom', hbs`I AM AN ATOM`, Component.extend({
Expand Down

0 comments on commit 1006ced

Please sign in to comment.