Enable "Select", "Select All" and "Copy" in read-only mode

pull/123/head
Xin Yao 4 years ago
parent 60431235bb
commit 2bf7b8b585
  1. 3
      CHANGELOG.md
  2. 4
      lib/widgets/editor.dart
  3. 4
      lib/widgets/raw_editor.dart
  4. 2
      pubspec.yaml

@ -1,3 +1,6 @@
## [1.1.5]
* Enable "Select", "Select All" and "Copy" in read-only mode.
## [1.1.4] ## [1.1.4]
* Fix text selection issue. * Fix text selection issue.

@ -277,10 +277,10 @@ class _QuillEditorState extends State<QuillEditor>
widget.placeholder, widget.placeholder,
widget.onLaunchUrl, widget.onLaunchUrl,
ToolbarOptions( ToolbarOptions(
copy: widget.enableInteractiveSelection, copy: true,
cut: widget.enableInteractiveSelection, cut: widget.enableInteractiveSelection,
paste: widget.enableInteractiveSelection, paste: widget.enableInteractiveSelection,
selectAll: widget.enableInteractiveSelection, selectAll: true,
), ),
theme.platform == TargetPlatform.iOS || theme.platform == TargetPlatform.iOS ||
theme.platform == TargetPlatform.android, theme.platform == TargetPlatform.android,

@ -371,10 +371,6 @@ class RawEditorState extends EditorState
_textInputConnection != null && _textInputConnection!.attached; _textInputConnection != null && _textInputConnection!.attached;
void openConnectionIfNeeded() { void openConnectionIfNeeded() {
if (!shouldCreateInputConnection) {
return;
}
if (!hasConnection) { if (!hasConnection) {
_lastKnownRemoteTextEditingValue = textEditingValue; _lastKnownRemoteTextEditingValue = textEditingValue;
_textInputConnection = TextInput.attach( _textInputConnection = TextInput.attach(

@ -1,6 +1,6 @@
name: flutter_quill name: flutter_quill
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
version: 1.1.4 version: 1.1.5
#author: bulletjournal #author: bulletjournal
homepage: https://bulletjournal.us/home/index.html homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save