refactoring

This commit is contained in:
Philipp Kühn
2020-04-13 13:58:30 +02:00
parent ca16a31e75
commit 925215367d

View File

@@ -1,4 +1,4 @@
import Editor, { Extension, CommandSpec } from '@tiptap/core' import { Extension, CommandSpec } from '@tiptap/core'
import { import {
history, history,
undo, undo,
@@ -45,19 +45,4 @@ export default class History extends Extension {
] ]
} }
// commands() {
// return {
// undo: (next, { view }) => {
// undo(view.state, view.dispatch)
// next()
// },
// redo: (next, { view }) => {
// redo(view.state, view.dispatch)
// next()
// },
// // undoDepth: () => undoDepth,
// // redoDepth: () => redoDepth,
// }
// }
} }