Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.tsindex 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,