From a0fac8b6d99c370f3bcc360553188014aa039db6 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 9 May 2025 10:31:37 +0300 Subject: [PATCH] fix(server): export not working due to content CSS --- apps/server/src/services/export/zip.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/server/src/services/export/zip.ts b/apps/server/src/services/export/zip.ts index 6b5a28b1d..81c67a21b 100644 --- a/apps/server/src/services/export/zip.ts +++ b/apps/server/src/services/export/zip.ts @@ -21,6 +21,7 @@ import type AttributeMeta from "../meta/attribute_meta.js"; import type BBranch from "../../becca/entities/bbranch.js"; import type { Response } from "express"; import type { NoteMetaFile } from "../meta/note_meta.js"; +import cssContent from "@triliumnext/ckeditor5/content.css"; type RewriteLinksFn = (content: string, noteMeta: NoteMeta) => string; @@ -511,8 +512,6 @@ ${markdownContent}`; return; } - const cssContent = fs.readFileSync(`${getResourceDir()}/public/libraries/ckeditor/ckeditor-content.css`); - archive.append(cssContent, { name: cssMeta.dataFileName }); }