From 4d7d6429524fc5f1d08eef044a32b2ce78722e85 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 10 Dec 2025 11:58:17 +0200 Subject: [PATCH] fix(layout): floating toolbar displayed in attachments --- apps/client/src/widgets/ribbon/RibbonDefinition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/ribbon/RibbonDefinition.ts b/apps/client/src/widgets/ribbon/RibbonDefinition.ts index 280f7cdda..ab351637d 100644 --- a/apps/client/src/widgets/ribbon/RibbonDefinition.ts +++ b/apps/client/src/widgets/ribbon/RibbonDefinition.ts @@ -22,7 +22,7 @@ export const RIBBON_TAB_DEFINITIONS: TabConfiguration[] = [ { title: t("classic_editor_toolbar.title"), icon: "bx bx-text", - show: async ({ note, noteContext }) => note?.type === "text" + show: async ({ note, noteContext }) => note?.type === "text" && noteContext?.viewScope?.viewMode === "default" && options.get("textNoteEditorType") === "ckeditor-classic" && !(await noteContext?.isReadOnly()), toggleCommand: "toggleRibbonTabClassicEditor",