move dropcursor and gapcursor to its own package
This commit is contained in:
@@ -12,12 +12,8 @@
|
||||
"dist"
|
||||
],
|
||||
"dependencies": {
|
||||
"@types/prosemirror-dropcursor": "^1.0.0",
|
||||
"@types/prosemirror-gapcursor": "^1.0.1",
|
||||
"@types/prosemirror-schema-list": "^1.0.1",
|
||||
"prosemirror-commands": "^1.1.3",
|
||||
"prosemirror-dropcursor": "^1.3.2",
|
||||
"prosemirror-gapcursor": "^1.1.5",
|
||||
"prosemirror-inputrules": "^1.1.3",
|
||||
"prosemirror-keymap": "^1.1.3",
|
||||
"prosemirror-model": "^1.12.0",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user