Skip to content
Compare
Choose a tag to compare
@amyworrall amyworrall released this 15 Nov 16:17
· 19 commits to main since this release

API breaking changes

  • Node type is now provided by a getType() method: #47

Fixes

  • Fixed memory leaks: #40, #44
  • Improvements to typing logic, particularly when replacing characters.
  • Fixed the "insert link" UI within the playground for situations where no text is selected.

Features

  • performRangeSearch() and performRangeSearchWithPayload() functions, to help converting Lexical EditorStates into a format used by backends/APIs which work with string ranges.
  • Undo/redo (aka History) is now in a plugin rather than core
  • SelectableDecoratorNode allows implementing a decorator that handles click-to-select. Improvements to NodeSelection allow pressing backspace to delete selected decorators, etc. SelectableImageNode provides an example use of this. (Still to do, allow theming the selection ring, and allow customising more behaviour!)