Releases: apollohg/react-native-rich-text-editor
Releases · apollohg/react-native-rich-text-editor
Release list
2.0.12
Changed
- Replaced
@expo/vector-iconswith@react-native-vector-icons/material-design-iconsand updated the toolbar icons and bundled Android font. Thanks to @mathers101 for contributing #5.
Fixed
- Built Android Rust libraries before packaging the release consumer in CI.
2.0.11
Added
- Added optional
snapshotScopetolocalHtmlinitialization, enabling scoped local snapshot export and restore while keeping the editor detached from collaboration.
2.0.10
Fixed
- Fixed Android viewers rendering with no text or height in minified release builds by preserving the JNI bridge class and native entry points during R8 optimisation.
2.0.9
Fixed
- Fixed Android viewer text overflowing its available width by correcting display-density conversion during final layout. Text now wraps to the parent width and matches the measured height without an explicit viewer width.
2.0.8
Fixed
- Exported
useEditorToolbarMentionStateandEditorToolbarMentionStatefrom the package entry point so custom mention suggestion components can subscribe to mention state independently of the rest of the toolbar state.
2.0.7
Fixed
- Fixed the iOS caret appearing an extra mention-width after a styled mention inserted at the start of an empty editor.
2.0.6
Fixed
- Fixed an iOS Debug-build assertion crash when a rich-text viewer first appears by initialising its default Fabric props in the constructor.
2.0.5
Added
- Added ancestry-aware style rules: a
rulesarray onEditorThemelets a style target an element by its full ancestor path, for example a list marker or paragraph nested inside a blockquote.
Fixed
- Fixed toggling a list's type (bullet, ordered, or task) so it converts the existing list in place instead of nesting a new list inside it.
- Aligned iOS unordered bullet sizing with Android's fixed-ratio diameter instead of measuring the glyph's bounding box.
- Fixed the ordered list marker scale being affected by the unordered marker scale setting, and corrected ordered marker indentation to use the visual nesting depth.
- Fixed the viewer ignoring an explicitly configured zero height on horizontal rules and falling back to the default thickness. non-contiguous ancestry rules could leak into marker styling.
Tests
- Added Android and iOS regression coverage for ancestry-based style rule resolution, contextual marker and code-font typography, list marker geometry, and list type conversion.
2.0.4
Fixed
- Fixed a fatal iOS stack overflow when focusing or tapping an empty editor, caused by recursive caret updates between tap handling and autocapitalization.
- Fixed Android clipboard compilation with Kotlin 1.9.
2.0.3
Added
- Added rich copy, cut, and paste on iOS and Android, preserving selected marks, nodes, custom attributes, and atoms between compatible editors.
- Added
pasteModewithrich(default),plainText, anddisabledoptions, including runtime updates and explicit Paste as Plain Text support. - Added clipboard HTML normalization for supported semantic and inline CSS formatting, lists, and preformatted text, plus iOS RTF import with supported formatting and whitespace preservation.