Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions lib/src/quill_editor_wrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,6 @@ class QuillHtmlEditorState extends State<QuillHtmlEditor> {
}
#scrolling-container {
min-height: ${widget.minHeight}px !important;
overflow-y: scroll !important;
-webkit-user-select: text !important;
}
</style>
Expand All @@ -520,8 +519,8 @@ class QuillHtmlEditorState extends State<QuillHtmlEditor> {

<!-- Create the editor container -->
<div style="position:relative;margin-top:0em;">
<div id="editorcontainer" style= "min-height:${widget.minHeight}px; overflow-y:scroll;margin-top:0em;">
<div id="editor" style="min-height:${widget.minHeight}px; width:100%;"></div>
<div id="editorcontainer" style= "min-height:${widget.minHeight}px; margin-top:0em;">
<div id="editor" style="min-height:${widget.minHeight}px; width:100%; height: ${widget.minHeight}px"></div>
</div>
</div>
</div>
Expand Down Expand Up @@ -685,7 +684,6 @@ class QuillHtmlEditorState extends State<QuillHtmlEditor> {
}
},
theme: 'snow',
scrollingContainer: '#scrolling-container',
placeholder: '${widget.hintText ?? "Description"}',
clipboard: {
matchVisual: true
Expand Down Expand Up @@ -851,7 +849,8 @@ class QuillHtmlEditorState extends State<QuillHtmlEditor> {
}

function setSelection(index, length) {
setTimeout(() => quilleditor.setSelection(index, length), 1);
setTimeout(() => quilleditor.setSelection(index, length), 10);
setTimeout(() => quilleditor.focus(), 1000);
return '';
}

Expand Down