From f6898779bbf5e74255095c500deb1f3fcb714f2c Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 3 Oct 2025 16:09:32 +0300 Subject: [PATCH] fix(code): unable to search in read-only code notes --- apps/client/src/widgets/type_widgets/read_only_code.ts | 10 ---------- 1 file changed, 10 deletions(-) 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 cdae4565e..78d84950a 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); - } }