Skip to content

v0.9.2

Compare
Choose a tag to compare
@bantic bantic released this 14 Apr 15:44
· 512 commits to master since this release

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 use inputModeDidChange instead. See #357

Deprecations

  • Deprecates editor.on('update', callback) in favor of editor.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 and activeMarkups (1b255c1)
  • [FEATURE] [BUGFIX] Refactor editor hooks #357
  • minor: change Range docs (d5aefae)