Skip to content

Build your personal knowledge base with Trilium Notes

fix(highlighting): highlighting not working immediately after a refresh

Elian Dorandf6797d9eacb
diff --git a/apps/client/src/widgets/type_widgets/ckeditor/config.ts b/apps/client/src/widgets/type_widgets/ckeditor/config.ts
index 2f1244f395..e58fac8f18 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,