remove escape key listener to select parent node

This commit is contained in:
Philipp Kühn
2019-04-19 15:25:44 +02:00
parent 36f39f1d7a
commit c2fc6ce545

View File

@@ -9,7 +9,7 @@ import { Schema, DOMParser, DOMSerializer } from 'prosemirror-model'
import { dropCursor } from 'prosemirror-dropcursor' import { dropCursor } from 'prosemirror-dropcursor'
import { gapCursor } from 'prosemirror-gapcursor' import { gapCursor } from 'prosemirror-gapcursor'
import { keymap } from 'prosemirror-keymap' import { keymap } from 'prosemirror-keymap'
import { baseKeymap, selectParentNode } from 'prosemirror-commands' import { baseKeymap } from 'prosemirror-commands'
import { inputRules, undoInputRule } from 'prosemirror-inputrules' import { inputRules, undoInputRule } from 'prosemirror-inputrules'
import { markIsActive, nodeIsActive, getMarkAttrs } from 'tiptap-utils' import { markIsActive, nodeIsActive, getMarkAttrs } from 'tiptap-utils'
import { ExtensionManager, ComponentView } from './Utils' import { ExtensionManager, ComponentView } from './Utils'
@@ -166,7 +166,6 @@ export default class Editor {
...this.keymaps, ...this.keymaps,
keymap({ keymap({
Backspace: undoInputRule, Backspace: undoInputRule,
Escape: selectParentNode,
}), }),
keymap(baseKeymap), keymap(baseKeymap),
dropCursor(this.options.dropCursor), dropCursor(this.options.dropCursor),