Fix paste bug

pull/249/head
Till Friebe 4 years ago
parent cdf50b579d
commit e2ab4df8cd
  1. 6
      lib/src/widgets/raw_editor.dart
  2. 8
      lib/src/widgets/raw_editor/raw_editor_state_selection_delegate_mixin.dart

@ -676,12 +676,6 @@ class RawEditorState extends EditorState
@override
bool get wantKeepAlive => widget.focusNode.hasFocus;
@override
void userUpdateTextEditingValue(
TextEditingValue value, SelectionChangedCause cause) {
updateEditingValue(value);
}
}
class _Editor extends MultiChildRenderObjectWidget {

@ -26,6 +26,14 @@ mixin RawEditorStateSelectionDelegateMixin on EditorState
}
}
@override
void userUpdateTextEditingValue(
TextEditingValue value,
SelectionChangedCause cause,
) {
setTextEditingValue(value);
}
@override
bool get cutEnabled => widget.toolbarOptions.cut && !widget.readOnly;

Loading…
Cancel
Save