From 03476e255b45b9d8b1428409954938a0b2960670 Mon Sep 17 00:00:00 2001 From: Tasheena Date: Tue, 4 Mar 2025 16:19:00 -0800 Subject: [PATCH 1/4] feat: Add getter for ContextMenu. Fixes #8786 --- core/contextmenu.ts | 9 +++++++++ 1 file changed, 9 insertions(+) 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. * From 4c0a89779628bf0ef8aac31751ebae7f89f4a4a6 Mon Sep 17 00:00:00 2001 From: tashee Date: Wed, 22 Oct 2025 07:52:50 -0400 Subject: [PATCH 2/4] fix: add getter to ContextMenu --- core/contextmenu.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/contextmenu.ts b/core/contextmenu.ts index 8d1195b75bc..b8abd845880 100644 --- a/core/contextmenu.ts +++ b/core/contextmenu.ts @@ -58,6 +58,15 @@ export function setCurrentBlock(block: Block | null) { */ let menu_: Menu | null = null; +export function getCurrentMenu(): Menu | null { + return menu_; +} + +export function setCurrentMeny(menu: Menu | null) { + menu_ = menu; +} + + /** * Gets Menu instance. * From 4fdd30ad0a96c045f109cccf76226d633df2c304 Mon Sep 17 00:00:00 2001 From: tashee Date: Wed, 22 Oct 2025 07:59:58 -0400 Subject: [PATCH 3/4] fix: add getter for ContextMenu --- core/contextmenu.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/core/contextmenu.ts b/core/contextmenu.ts index b8abd845880..21aad32e7e3 100644 --- a/core/contextmenu.ts +++ b/core/contextmenu.ts @@ -66,7 +66,6 @@ export function setCurrentMeny(menu: Menu | null) { menu_ = menu; } - /** * Gets Menu instance. * From 5aaeb2c50e1963fbf8112e8a21d2c21a0623fb86 Mon Sep 17 00:00:00 2001 From: tashee Date: Wed, 22 Oct 2025 08:05:50 -0400 Subject: [PATCH 4/4] fix: add getter to ContextMenu --- core/contextmenu.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/contextmenu.ts b/core/contextmenu.ts index 21aad32e7e3..8d1195b75bc 100644 --- a/core/contextmenu.ts +++ b/core/contextmenu.ts @@ -58,14 +58,6 @@ export function setCurrentBlock(block: Block | null) { */ let menu_: Menu | null = null; -export function getCurrentMenu(): Menu | null { - return menu_; -} - -export function setCurrentMeny(menu: Menu | null) { - menu_ = menu; -} - /** * Gets Menu instance. *