Skip to content

Commit e2ab4df

Browse files
committed
Fix paste bug
1 parent cdf50b5 commit e2ab4df

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lib/src/widgets/raw_editor.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -676,12 +676,6 @@ class RawEditorState extends EditorState
676676

677677
@override
678678
bool get wantKeepAlive => widget.focusNode.hasFocus;
679-
680-
@override
681-
void userUpdateTextEditingValue(
682-
TextEditingValue value, SelectionChangedCause cause) {
683-
updateEditingValue(value);
684-
}
685679
}
686680

687681
class _Editor extends MultiChildRenderObjectWidget {

lib/src/widgets/raw_editor/raw_editor_state_selection_delegate_mixin.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ mixin RawEditorStateSelectionDelegateMixin on EditorState
2626
}
2727
}
2828

29+
@override
30+
void userUpdateTextEditingValue(
31+
TextEditingValue value,
32+
SelectionChangedCause cause,
33+
) {
34+
setTextEditingValue(value);
35+
}
36+
2937
@override
3038
bool get cutEnabled => widget.toolbarOptions.cut && !widget.readOnly;
3139

0 commit comments

Comments
 (0)