move dropcursor and gapcursor to its own package

This commit is contained in:
Philipp Kühn
2020-11-01 00:16:28 +01:00
parent d810054492
commit 4ce0eef6c0
10 changed files with 268 additions and 165 deletions

View File

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