add comments to all commands

This commit is contained in:
Hans Pagel
2020-11-13 15:08:30 +01:00
parent 48be5d1f16
commit 5b76bf5141
24 changed files with 158 additions and 10 deletions

View File

@@ -14,9 +14,15 @@ const History = createExtension({
addCommands() {
return {
/**
* Undo recent changes
*/
undo: (): Command => ({ state, dispatch }) => {
return undo(state, dispatch)
},
/**
* Reapply reverted changes
*/
redo: (): Command => ({ state, dispatch }) => {
return redo(state, dispatch)
},