Skip to content

Commit

Permalink
docs: Document inputModeDidChange() lifecycle hook (#553)
Browse files Browse the repository at this point in the history
* Document inputModeDidChange() lifecycle hook.

* Link to docs instead
  • Loading branch information
YoranBrondsema authored and bantic committed May 25, 2017
1 parent cf2eee6 commit 88c5bda
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ The available lifecycle hooks are:
* `editor.didDelete((range, direction, unit))` - Provides `range`, `direction` and `unit` to identify the completed deletion.
* `editor.cursorDidChange()` - When the cursor (or selection) changes as a result of arrow-key
movement or clicking in the document.
* `editor.onTextInput()` - When the user adds text to the document (see [example](https://github.com/bustle/mobiledoc-kit#responding-to-text-input))
* `editor.onTextInput()` - When the user adds text to the document (see [example](https://github.com/bustlelabs/mobiledoc-kit#responding-to-text-input))
* `editor.inputModeDidChange()` - The active section(s) or markup(s) at the current cursor position or selection have changed. This hook can be used with `Editor#activeMarkups` and `Editor#activeSections` to implement a custom toolbar.

For more details on the lifecycle hooks, see the [Editor documentation](https://bustlelabs.github.io/mobiledoc-kit/demo/docs/Editor.html).

### Programmatic Post Editing

Expand Down

0 comments on commit 88c5bda

Please sign in to comment.