Is it possible to display the bubble menu only when the table is dragged (selected)? #5689
-
DescriptionWhen the current table has focus. A bubble menu will appear. Is there a way to make the bubble menu appear only when the table is dragged (selected)? relationship |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Sorry, I am little confused😅 Assuming the bubble menu is expected to show up when the table has focus, adding |
Beta Was this translation helpful? Give feedback.
-
Self Answer<BubbleMenu
editor={editor}
tippyOptions={{ placement: "bottom" }}
shouldShow={({ editor, state }) => {
const { selection } = state;
const isText = isTextSelection(selection);
return !isText && editor?.isActive("table");
}}
>
table bubble menu
</BubbleMenu> |
Beta Was this translation helpful? Give feedback.
Self Answer