fix tests

This commit is contained in:
Philipp Kühn
2020-12-02 12:05:35 +01:00
parent 88f89df479
commit cd46e5ebd2
2 changed files with 8 additions and 4 deletions

View File

@@ -22,13 +22,17 @@ const Collaboration = Extension.create({
/**
* Undo recent changes
*/
undo: (): Command => ({ state }) => {
undo: (): Command => ({ tr, state }) => {
tr.setMeta('preventDispatch', true)
return undo(state)
},
/**
* Reapply reverted changes
*/
redo: (): Command => ({ state }) => {
redo: (): Command => ({ tr, state }) => {
tr.setMeta('preventDispatch', true)
return redo(state)
},
}