fix enableDropCursor and enableGapCursor default options
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user