v0.9.2
Several fixes for bugs related to edit state. Cleaned-up documentation.
Features
- added
postDidChangehook, called when the post content changes - added
inputModeDidChangehook, 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
cursorDidChangehook to fire only when the cursor changes. Consumers that depended on it to fire when input mode changed should now useinputModeDidChangeinstead. 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
docsnpm script. (2b28d95) - [CLEANUP] Improve documentation for Editor, Post, PostNodeBuilder, Range (97140e9)
- [DOC] minor change for
activeSectionsandactiveMarkups(1b255c1) - [FEATURE] [BUGFIX] Refactor editor hooks #357
- minor: change Range docs (d5aefae)