refactoring
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import Editor, { Extension, CommandSpec } from '@tiptap/core'
|
||||
import { Extension, CommandSpec } from '@tiptap/core'
|
||||
import {
|
||||
history,
|
||||
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,
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user