diff --git a/CHANGELOG.md b/CHANGELOG.md index 96d611ee..84dcc862 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [1.1.5] +* Enable "Select", "Select All" and "Copy" in read-only mode. + ## [1.1.4] * Fix text selection issue. diff --git a/lib/widgets/editor.dart b/lib/widgets/editor.dart index 5bab5fb4..56b41641 100644 --- a/lib/widgets/editor.dart +++ b/lib/widgets/editor.dart @@ -277,10 +277,10 @@ class _QuillEditorState extends State widget.placeholder, widget.onLaunchUrl, ToolbarOptions( - copy: widget.enableInteractiveSelection, + copy: true, cut: widget.enableInteractiveSelection, paste: widget.enableInteractiveSelection, - selectAll: widget.enableInteractiveSelection, + selectAll: true, ), theme.platform == TargetPlatform.iOS || theme.platform == TargetPlatform.android, diff --git a/lib/widgets/raw_editor.dart b/lib/widgets/raw_editor.dart index d48fea6b..c4b15c88 100644 --- a/lib/widgets/raw_editor.dart +++ b/lib/widgets/raw_editor.dart @@ -371,10 +371,6 @@ class RawEditorState extends EditorState _textInputConnection != null && _textInputConnection!.attached; void openConnectionIfNeeded() { - if (!shouldCreateInputConnection) { - return; - } - if (!hasConnection) { _lastKnownRemoteTextEditingValue = textEditingValue; _textInputConnection = TextInput.attach( diff --git a/pubspec.yaml b/pubspec.yaml index 69bb7a14..a06bd297 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.4 +version: 1.1.5 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill