diff --git a/src/views/conflicts-resolution/editor-pane.tsx b/src/views/conflicts-resolution/editor-pane.tsx index 1bccb3b..4464d31 100644 --- a/src/views/conflicts-resolution/editor-pane.tsx +++ b/src/views/conflicts-resolution/editor-pane.tsx @@ -55,10 +55,10 @@ const EditorPane: React.FC = (props) => { width={"100%"} basicSetup={false} extensions={extensions} + onChange={(value: string) => { + onContentChange(value); + }} onUpdate={(viewUpdate: ViewUpdate) => { - if (viewUpdate.docChanged) { - onContentChange(viewUpdate.state.doc.toString()); - } // We want to know when it updates in case the line height changes onEditorUpdate?.(viewUpdate.view); }}