|
|
|
@ -77,7 +77,7 @@ class QuillRawEditorState extends EditorState |
|
|
|
|
// Cursors |
|
|
|
|
late CursorCont _cursorCont; |
|
|
|
|
|
|
|
|
|
QuillController get controller => widget.configurations.controller; |
|
|
|
|
QuillController get controller => widget.controller; |
|
|
|
|
|
|
|
|
|
// Focus |
|
|
|
|
bool _didAutoFocus = false; |
|
|
|
@ -1275,8 +1275,7 @@ class QuillRawEditorState extends EditorState |
|
|
|
|
_cursorCont.style = widget.configurations.cursorStyle; |
|
|
|
|
|
|
|
|
|
if (controller != oldWidget.configurations.controller) { |
|
|
|
|
oldWidget.configurations.controller |
|
|
|
|
.removeListener(_didChangeTextEditingValue); |
|
|
|
|
oldWidget.controller.removeListener(_didChangeTextEditingValue); |
|
|
|
|
controller.addListener(_didChangeTextEditingValue); |
|
|
|
|
updateRemoteValueIfNeeded(); |
|
|
|
|
} |
|
|
|
@ -1293,7 +1292,7 @@ class QuillRawEditorState extends EditorState |
|
|
|
|
updateKeepAlive(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (controller.selection != oldWidget.configurations.controller.selection) { |
|
|
|
|
if (controller.selection != oldWidget.controller.selection) { |
|
|
|
|
_selectionOverlay?.update(textEditingValue); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1348,7 +1347,7 @@ class QuillRawEditorState extends EditorState |
|
|
|
|
/// operating on stale data. |
|
|
|
|
void _markNeedsBuild() { |
|
|
|
|
if (_dirty) { |
|
|
|
|
// No need to rebuilt if it already darty |
|
|
|
|
// No need to rebuilt if it already dirty |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
setState(() { |
|
|
|
@ -1626,7 +1625,7 @@ class QuillRawEditorState extends EditorState |
|
|
|
|
final QuillEditorTextBoundary boundary; |
|
|
|
|
|
|
|
|
|
// final TextEditingValue textEditingValue = |
|
|
|
|
// _textEditingValueforTextLayoutMetrics; |
|
|
|
|
// _textEditingValueForTextLayoutMetrics; |
|
|
|
|
atomicTextBoundary = QuillEditorCharacterBoundary(textEditingValue); |
|
|
|
|
// This isn't enough. Newline characters. |
|
|
|
|
boundary = QuillEditorExpandedTextBoundary( |
|
|
|
|