FloatingMenuPluginProps
interface FloatingMenuPluginProps {
editor: Editor;
element: HTMLElement;
pluginKey: PluginKey | string;
shouldShow?: ((props: {
editor: Editor;
view: EditorView;
state: EditorState;
oldState?: EditorState;
}) => boolean) | null;tippyOptions?: Partial<Props>;
}§Properties
§
shouldShow?: ((props: {
[src]editor: Editor;
view: EditorView;
state: EditorState;
oldState?: EditorState;
}) => 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.