From 49fb900bf645e94ca1b50cb43fb4b5cdcc6ccc86 Mon Sep 17 00:00:00 2001 From: Douglas Ward Date: Wed, 24 Apr 2024 07:42:25 -0600 Subject: [PATCH] Move clipboard actions to QuillController --- lib/src/editor/raw_editor/raw_editor.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/editor/raw_editor/raw_editor.dart b/lib/src/editor/raw_editor/raw_editor.dart index 23b3130b..6a55425a 100644 --- a/lib/src/editor/raw_editor/raw_editor.dart +++ b/lib/src/editor/raw_editor/raw_editor.dart @@ -38,7 +38,9 @@ class QuillRawEditor extends StatefulWidget { configurations.maxHeight == null || configurations.minHeight == null || configurations.maxHeight! >= configurations.minHeight!, - 'maxHeight cannot be null'); + 'maxHeight cannot be null') { + configurations.controller.readOnly = configurations.readOnly; + } final QuillController controller; final QuillRawEditorConfigurations configurations;