From df6797d9eacb096f64c197f6033977337f671494 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 18 May 2025 19:34:27 +0300 Subject: [PATCH] fix(highlighting): highlighting not working immediately after a refresh --- apps/client/src/widgets/type_widgets/ckeditor/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/type_widgets/ckeditor/config.ts b/apps/client/src/widgets/type_widgets/ckeditor/config.ts index 2f1244f39..e58fac8f1 100644 --- a/apps/client/src/widgets/type_widgets/ckeditor/config.ts +++ b/apps/client/src/widgets/type_widgets/ckeditor/config.ts @@ -104,7 +104,7 @@ export function buildConfig() { }, syntaxHighlighting: { loadHighlightJs: async () => { - ensureMimeTypesForHighlighting(); + await ensureMimeTypesForHighlighting(); return await import("@triliumnext/highlightjs"); }, mapLanguageName: getHighlightJsNameForMime,