fix search in "view source", closes #3929

This commit is contained in:
zadam
2023-05-13 15:58:32 +02:00
parent 8eb0a4e1cb
commit 239c14a5df
3 changed files with 9 additions and 2 deletions

View File

@@ -69,7 +69,8 @@ export default class TocWidget extends RightPanelWidget {
isEnabled() {
return super.isEnabled()
&& this.note.type === 'text'
&& !this.noteContext.viewScope.tocTemporarilyHidden;
&& !this.noteContext.viewScope.tocTemporarilyHidden
&& this.noteContext.viewScope.viewMode === 'default';
}
async doRenderBody() {