Skip to content

Build your personal knowledge base with Trilium Notes

Remove read-only checks of find

SiriusXT05f441924a13
diff --git a/apps/client/src/widgets/find.ts b/apps/client/src/widgets/find.ts
index 7ff87736a1..0239251cb4 100644
--- a/apps/client/src/widgets/find.ts
+++ b/apps/client/src/widgets/find.ts
@@ -197,7 +197,7 @@ export default class FindWidget extends NoteContextAwareWidget {
const isReadOnly = await this.noteContext?.isReadOnly();
let selectedText = "";
- if (this.note?.type === "code" && this.noteContext && !isReadOnly) {
+ if (this.note?.type === "code" && this.noteContext) {
const codeEditor = await this.noteContext.getCodeEditor();
selectedText = codeEditor.getSelectedText();
} else {