Remove read-only checks of find

This commit is contained in:
SiriusXT 2025-05-14 14:46:42 +08:00
parent 3dd13ca321
commit 05f441924a

View File

@ -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 {