fix - bubble-menu

This commit is contained in:
beo3000 2026-02-26 15:59:01 +01:00
parent 52dc663eba
commit e1dbac240a
3 changed files with 9 additions and 2 deletions

View File

@ -1 +1 @@
1.1.78 1.1.79

View File

@ -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.