Skip to content
Snippets Groups Projects
Commit 07e8f379 authored by chris's avatar chris
Browse files

fix undo/redo

parent 95d8042f
No related branches found
No related tags found
1 merge request!348Multiple single
...@@ -56,7 +56,7 @@ export default ({ node, view }) => { ...@@ -56,7 +56,7 @@ export default ({ node, view }) => {
// Kludge to prevent issues due to the fact that the whole // Kludge to prevent issues due to the fact that the whole
// footnote is node-selected (and thus DOM-selected) when // footnote is node-selected (and thus DOM-selected) when
// the parent editor is focused. // the parent editor is focused.
if (noteView.hasFocus()) noteView.focus(); // if (noteView.hasFocus()) noteView.focus();
}, },
}, },
handleTextInput: (editorView, from, to, text) => { handleTextInput: (editorView, from, to, text) => {
...@@ -108,6 +108,10 @@ export default ({ node, view }) => { ...@@ -108,6 +108,10 @@ export default ({ node, view }) => {
setTimeout(() => { setTimeout(() => {
if (clickInNote) context.updateView({}, noteId); if (clickInNote) context.updateView({}, noteId);
clickInNote = false; clickInNote = false;
if (typing) {
context.updateView({}, noteId);
typing = false;
}
if (noteView.state.selection.from !== noteView.state.selection.to) if (noteView.state.selection.from !== noteView.state.selection.to)
context.updateView({}, noteId); context.updateView({}, noteId);
}, 20); }, 20);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment