diff --git a/apps/client/src/widgets/find.ts b/apps/client/src/widgets/find.ts index 7ff87736a..0239251cb 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 {