diff --git a/apps/client/src/widgets/ribbon/FormattingToolbar.tsx b/apps/client/src/widgets/ribbon/FormattingToolbar.tsx index b78734f9f..610063a3c 100644 --- a/apps/client/src/widgets/ribbon/FormattingToolbar.tsx +++ b/apps/client/src/widgets/ribbon/FormattingToolbar.tsx @@ -100,7 +100,7 @@ function useRenderState(activeNoteContext: NoteContext | undefined, activeNote: const [ textNoteEditorType ] = useTriliumOption("textNoteEditorType"); const [ state, setState ] = useState("hidden"); - useTriliumEvents([ "newNoteContextCreated", "noteContextRemoved" ], () => { + useTriliumEvents([ "newNoteContextCreated", "noteContextRemoved", "readOnlyTemporarilyDisabled" ], () => { getFormattingToolbarState(activeNoteContext, activeNote, textNoteEditorType).then(setState); });