mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-01 04:12:58 +08:00
Remove read-only checks of find
This commit is contained in:
parent
3dd13ca321
commit
05f441924a
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user