diff --git a/CHANGELOG.md b/CHANGELOG.md index bee97937..3550e11a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [1.1.7] +* Fix text selection in read-only mode. + ## [1.1.6] * Remove universal_html dependency. diff --git a/lib/widgets/raw_editor.dart b/lib/widgets/raw_editor.dart index 7dbd46ed..1b649274 100644 --- a/lib/widgets/raw_editor.dart +++ b/lib/widgets/raw_editor.dart @@ -898,6 +898,12 @@ class RawEditorState extends EditorState _onChangeTextEditingValue(); } else { requestKeyboard(); + if (mounted) { + setState(() { + // Use widget.controller.value in build() + // Trigger build and updateChildren + }); + } } } @@ -1109,6 +1115,7 @@ class RawEditorState extends EditorState return false; } + _selectionOverlay!.update(textEditingValue); _selectionOverlay!.showToolbar(); return true; } diff --git a/pubspec.yaml b/pubspec.yaml index 040d3d33..504f96d1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) -version: 1.1.6 +version: 1.1.7 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill