fix enableDropCursor and enableGapCursor default options

This commit is contained in:
Hans Pagel 2020-08-11 15:21:38 +02:00
parent 1fc3a0b504
commit 7b628bad8d

View File

@ -213,8 +213,8 @@ export default class Editor extends Emitter {
Backspace: undoInputRule, Backspace: undoInputRule,
}), }),
keymap(baseKeymap), keymap(baseKeymap),
...(enableDropCursor ? [dropCursor(this.options.dropCursor)] : []), ...(this.options.enableDropCursor ? [dropCursor(this.options.dropCursor)] : []),
...(enableGapCursor ? [gapCursor()] : []), ...(this.options.enableGapCursor ? [gapCursor()] : []),
new Plugin({ new Plugin({
key: new PluginKey('editable'), key: new PluginKey('editable'),
props: { props: {