Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(layout): floating toolbar displayed in attachments
Elian Doran4d7d6429524f
diff --git a/apps/client/src/widgets/ribbon/RibbonDefinition.ts b/apps/client/src/widgets/ribbon/RibbonDefinition.tsindex 280f7cdda5..ab351637d9 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",