From 041d24cea02847de249eafc1b1726c200ff47d5d Mon Sep 17 00:00:00 2001 From: Xin Yao Date: Sat, 3 Apr 2021 18:55:56 -0700 Subject: [PATCH] Use widget.enableInteractiveSelection for copy/selectAll in ToobarOptions --- lib/widgets/editor.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/editor.dart b/lib/widgets/editor.dart index df74e2e7..f9bab1c1 100644 --- a/lib/widgets/editor.dart +++ b/lib/widgets/editor.dart @@ -243,10 +243,10 @@ class _QuillEditorState extends State widget.placeholder, widget.onLaunchUrl, ToolbarOptions( - copy: true, + copy: widget.enableInteractiveSelection, cut: widget.enableInteractiveSelection, paste: widget.enableInteractiveSelection, - selectAll: true, + selectAll: widget.enableInteractiveSelection, ), theme.platform == TargetPlatform.iOS || theme.platform == TargetPlatform.android,