From f8a79f9e7979cf868e7b62aace4150365866a6f1 Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Thu, 11 Dec 2025 21:21:19 +0530 Subject: [PATCH] Bring back notice menu (#10860) * fix: notice menu regression * fix: local var --- app/editor/components/SelectionToolbar.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/editor/components/SelectionToolbar.tsx b/app/editor/components/SelectionToolbar.tsx index 4c2ac8be1a..692c92dfa8 100644 --- a/app/editor/components/SelectionToolbar.tsx +++ b/app/editor/components/SelectionToolbar.tsx @@ -93,6 +93,7 @@ export function SelectionToolbar(props: Props) { selection.node.type.name === "embed"; const isCodeSelection = isInCode(state, { onlyBlock: true }); + const isNoticeSelection = isInNotice(state); if (isEmbedSelection && !readOnly) { setActiveToolbar(Toolbar.Media); @@ -102,6 +103,8 @@ export function SelectionToolbar(props: Props) { setActiveToolbar(Toolbar.Menu); } else if (!selection.empty) { setActiveToolbar(Toolbar.Menu); + } else if (isNoticeSelection && selection.empty) { + setActiveToolbar(Toolbar.Menu); } else if (selection.empty) { setActiveToolbar(null); }