Releases: facebook/lexical-ios
Releases · facebook/lexical-ios
0.2
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()
andperformRangeSearchWithPayload()
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 toNodeSelection
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!)
v0.1
- Initial release
Features
- Lexical API re-implemented in Swift
LexicalView
, a rich text editor for use within UIKit- An example Playground app, containing a sample implementation of a rich text toolbar
- JSON serialization
- HTML export (work in progress)
- Decorator node API allows embedding inline
UIView
s that move with the text - Embedded inline images
- Bulleted and numbered lists
- Theming support based on NSAttributedString attributes
- Plugin interface, including commands, listeners, and custom drawing routines
- A read-only Lexical renderer
LexicalReadOnlyView
(currently undocumented) - Initial read-only support for tables
A note on API stability
- For versions before we hit
1.0
, any breaking changes of the API will be accompanied by an increase in the second version digit. For example, a0.1.1
release will not contain breaking API changes (although it may contain API additions); whereas a0.2
release may contain breaking changes. We will attempt to mention any such changes in the release notes.