fix - bubble-menu
This commit is contained in:
parent
52dc663eba
commit
e1dbac240a
|
|
@ -1 +1 @@
|
||||||
1.1.78
|
1.1.79
|
||||||
|
|
@ -98,7 +98,14 @@
|
||||||
TableHeader,
|
TableHeader,
|
||||||
BubbleMenu.configure({
|
BubbleMenu.configure({
|
||||||
element: bubbleMenuEl,
|
element: bubbleMenuEl,
|
||||||
shouldShow: ({ editor: e, from, to }) => from !== to && !e.isActive('image'),
|
tippyOptions: { duration: 100 },
|
||||||
|
shouldShow: ({ editor: e, from, to, view }) => {
|
||||||
|
if (!view.hasFocus()) return false;
|
||||||
|
if (from === to) return false;
|
||||||
|
if (e.isActive('image')) return false;
|
||||||
|
const { empty } = e.state.selection;
|
||||||
|
return !empty;
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
content: initialContent,
|
content: initialContent,
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue