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(highlightjs): integration with editable text
Elian Doran5205320d442d
diff --git a/apps/client/src/widgets/type_widgets/ckeditor/config.ts b/apps/client/src/widgets/type_widgets/ckeditor/config.tsindex b4ba9633af..ddc027f713 100644--- a/apps/client/src/widgets/type_widgets/ckeditor/config.ts+++ b/apps/client/src/widgets/type_widgets/ckeditor/config.ts@@ -104,10 +104,7 @@ export function buildConfig() {definitionsUrl: emojiDefinitionsUrl},syntaxHighlighting: {- async loadHighlightJs() {- await library_loader.requireLibrary(library_loader.HIGHLIGHT_JS);- return hljs;- },+ loadHighlightJs: async () => await import("@triliumnext/highlightjs"),mapLanguageName: getHighlightJsNameForMime,defaultMimeType: MIME_TYPE_AUTO,enabled: isSyntaxHighlightEnabled