From 37473af031ad2405522f7bd45d88760865441597 Mon Sep 17 00:00:00 2001 From: Burak Karahan Date: Tue, 13 Jun 2023 13:01:35 +0300 Subject: [PATCH 1/2] Update quill_editor_wrapper.dart --- lib/src/quill_editor_wrapper.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/quill_editor_wrapper.dart b/lib/src/quill_editor_wrapper.dart index a65781fad..d233fbd7a 100644 --- a/lib/src/quill_editor_wrapper.dart +++ b/lib/src/quill_editor_wrapper.dart @@ -521,7 +521,7 @@ class QuillHtmlEditorState extends State {
-
+
@@ -685,7 +685,6 @@ class QuillHtmlEditorState extends State { } }, theme: 'snow', - scrollingContainer: '#scrolling-container', placeholder: '${widget.hintText ?? "Description"}', clipboard: { matchVisual: true @@ -851,7 +850,8 @@ class QuillHtmlEditorState extends State { } function setSelection(index, length) { - setTimeout(() => quilleditor.setSelection(index, length), 1); + setTimeout(() => quilleditor.setSelection(index, length), 10); + setTimeout(() => quilleditor.focus(), 1000); return ''; } From f6fa086bc50954554ccc6b9f60ff55a5c18f4695 Mon Sep 17 00:00:00 2001 From: Burak Karahan Date: Tue, 20 Jun 2023 21:51:47 +0300 Subject: [PATCH 2/2] Fix scroll --- lib/src/quill_editor_wrapper.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/quill_editor_wrapper.dart b/lib/src/quill_editor_wrapper.dart index d233fbd7a..eea851555 100644 --- a/lib/src/quill_editor_wrapper.dart +++ b/lib/src/quill_editor_wrapper.dart @@ -495,7 +495,6 @@ class QuillHtmlEditorState extends State { } #scrolling-container { min-height: ${widget.minHeight}px !important; - overflow-y: scroll !important; -webkit-user-select: text !important; } @@ -520,7 +519,7 @@ class QuillHtmlEditorState extends State {
-
+