v0.9.2
Several fixes for bugs related to edit state. Cleaned-up documentation.
Features
- added
postDidChange
hook, called when the post content changes - added
inputModeDidChange
hook, called when the input mode changes (e.g., text under cursor changes to/from bold or to/from a section type)
Breaking Change
- Fixed the
cursorDidChange
hook to fire only when the cursor changes. Consumers that depended on it to fire when input mode changed should now useinputModeDidChange
instead. See #357
Deprecations
- Deprecates
editor.on('update', callback)
in favor ofeditor.postDidChange(callback)
Other changes
- [BUGFIX] Ensure Editor#hasActiveMarkup detects complex markups #358
- [BUGFIX] Ensure inputModeDidChange fires when changing from ol -> ul #359
- [CLEANUP] Enable live-reload for tests (a5f4c3d)
- [CLEANUP] Fix jsdoc formatting, add
docs
npm script. (2b28d95) - [CLEANUP] Improve documentation for Editor, Post, PostNodeBuilder, Range (97140e9)
- [DOC] minor change for
activeSections
andactiveMarkups
(1b255c1) - [FEATURE] [BUGFIX] Refactor editor hooks #357
- minor: change Range docs (d5aefae)