fix(layout): floating toolbar displayed in attachments

This commit is contained in:
Elian Doran 2025-12-10 11:58:17 +02:00
parent 737711e5eb
commit 4d7d642952
No known key found for this signature in database

View File

@ -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",