move plugins

This commit is contained in:
Philipp Kühn
2020-08-21 21:23:46 +02:00
parent 9e1bb182db
commit 53f892ddd0
3 changed files with 28 additions and 13 deletions

View File

@@ -0,0 +1,16 @@
import { undoInputRule } from 'prosemirror-inputrules'
import { keymap } from 'prosemirror-keymap'
import { baseKeymap } from 'prosemirror-commands'
import { dropCursor } from 'prosemirror-dropcursor'
import { gapCursor } from 'prosemirror-gapcursor'
import editable from './editable'
import focus from './focus'
export default [
() => dropCursor(),
() => gapCursor(),
() => keymap({ Backspace: undoInputRule }),
() => keymap(baseKeymap),
editable,
focus,
]