From 07e8f37969b20155074e09195d915f7aa9ea7cfc Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Fri, 3 Dec 2021 10:49:18 +0200 Subject: [PATCH] fix undo/redo --- wax-prosemirror-services/src/NoteService/Editor.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wax-prosemirror-services/src/NoteService/Editor.js b/wax-prosemirror-services/src/NoteService/Editor.js index 30d736d6e..fea500af3 100644 --- a/wax-prosemirror-services/src/NoteService/Editor.js +++ b/wax-prosemirror-services/src/NoteService/Editor.js @@ -56,7 +56,7 @@ export default ({ node, view }) => { // Kludge to prevent issues due to the fact that the whole // footnote is node-selected (and thus DOM-selected) when // the parent editor is focused. - if (noteView.hasFocus()) noteView.focus(); + // if (noteView.hasFocus()) noteView.focus(); }, }, handleTextInput: (editorView, from, to, text) => { @@ -108,6 +108,10 @@ export default ({ node, view }) => { setTimeout(() => { if (clickInNote) context.updateView({}, noteId); clickInNote = false; + if (typing) { + context.updateView({}, noteId); + typing = false; + } if (noteView.state.selection.from !== noteView.state.selection.to) context.updateView({}, noteId); }, 20); -- GitLab