BubbleMenuPluginProps
interface BubbleMenuPluginProps {
editor: Editor;
element: HTMLElement;
pluginKey: PluginKey | string;
shouldShow?: ((props: {
editor: Editor;
view: EditorView;
state: EditorState;
oldState?: EditorState;
from: number;
to: number;
}) => boolean) | null;tippyOptions?: Partial<Props>;
updateDelay?: number;
}§Properties
§
shouldShow?: ((props: {
[src]editor: Editor;
view: EditorView;
state: EditorState;
oldState?: EditorState;
from: number;
to: number;
}) => boolean) | nullA function that determines whether the menu should be shown or not.
If this function returns false
, the menu will be hidden, otherwise it will be shown.