Skip to content

Build your personal knowledge base with Trilium Notes

fix(code): unable to search in read-only code notes

Elian Doranf6898779bbf5
diff --git a/apps/client/src/widgets/type_widgets/read_only_code.ts b/apps/client/src/widgets/type_widgets/read_only_code.ts
index cdae4565ec..78d84950ad 100644
--- a/apps/client/src/widgets/type_widgets/read_only_code.ts
+++ b/apps/client/src/widgets/type_widgets/read_only_code.ts
@@ -45,14 +45,4 @@ export default class ReadOnlyCodeTypeWidget extends AbstractCodeTypeWidget {
readOnly: true
};
}
-
- async executeWithContentElementEvent({ resolve, ntxId }: EventData<"executeWithContentElement">) {
- if (!this.isNoteContext(ntxId)) {
- return;
- }
-
- await this.initialized;
-
- resolve(this.$editor);
- }
}