diff --git a/core/contextmenu.ts b/core/contextmenu.ts index b49dcba51c0..8d1195b75bc 100644 --- a/core/contextmenu.ts +++ b/core/contextmenu.ts @@ -58,6 +58,15 @@ export function setCurrentBlock(block: Block | null) { */ let menu_: Menu | null = null; +/** + * Gets Menu instance. + * + * @returns menu instance. + */ +export function getMenu(): Menu | null { + return menu_; +} + /** * Construct the menu based on the list of options and show the menu. *