From 88c5bda6ead69231087ab00cbb6d83bd35fa1ead Mon Sep 17 00:00:00 2001 From: Yoran Brondsema Date: Thu, 25 May 2017 14:25:46 -0400 Subject: [PATCH] docs: Document inputModeDidChange() lifecycle hook (#553) * Document inputModeDidChange() lifecycle hook. * Link to docs instead --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 923c08ee6..8e6afa89c 100644 --- a/README.md +++ b/README.md @@ -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