add basic new commands

This commit is contained in:
Philipp Kühn
2018-10-28 19:26:14 +01:00
parent 11bb74babb
commit d2519c2953
5 changed files with 90 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
import { Extension } from 'tiptap'
import { history, undo, redo } from 'prosemirror-history'
import { setBlockType, textblockTypeInputRule, toggleBlockType } from 'tiptap-commands'
export default class History extends Extension {
@@ -27,4 +28,11 @@ export default class History extends Extension {
]
}
commands() {
return {
undo: () => undo,
redo: () => redo,
}
}
}