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,