mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-14 18:49:02 +08:00
fix enableDropCursor and enableGapCursor default options
This commit is contained in:
parent
1fc3a0b504
commit
7b628bad8d
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user