fix keymaps

This commit is contained in:
Philipp Kühn
2020-11-02 23:26:41 +01:00
parent ade9847e72
commit 3a79b8c564
6 changed files with 34 additions and 22 deletions

View File

@@ -1,19 +0,0 @@
import { keymap } from 'prosemirror-keymap'
import { baseKeymap } from 'prosemirror-commands'
import { undoInputRule } from 'prosemirror-inputrules'
import { createExtension } from '../Extension'
export const Keymap = createExtension({
addProseMirrorPlugins() {
return [
keymap({ Backspace: undoInputRule }),
keymap(baseKeymap),
]
},
})
declare module '../Editor' {
interface AllExtensions {
Keymap: typeof Keymap,
}
}