mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-03 22:30:51 +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();
|
const isReadOnly = await this.noteContext?.isReadOnly();
|
||||||
|
|
||||||
let selectedText = "";
|
let selectedText = "";
|
||||||
if (this.note?.type === "code" && this.noteContext && !isReadOnly) {
|
if (this.note?.type === "code" && this.noteContext) {
|
||||||
const codeEditor = await this.noteContext.getCodeEditor();
|
const codeEditor = await this.noteContext.getCodeEditor();
|
||||||
selectedText = codeEditor.getSelectedText();
|
selectedText = codeEditor.getSelectedText();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user