From 05f441924a13762006d6916f7e42447e59590a5f Mon Sep 17 00:00:00 2001 From: SiriusXT <1160925501@qq.com> Date: Wed, 14 May 2025 14:46:42 +0800 Subject: [PATCH] Remove read-only checks of find --- apps/client/src/widgets/find.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {