fix(server): export not working due to content CSS

This commit is contained in:
Elian Doran 2025-05-09 10:31:37 +03:00
parent 9cb56a4875
commit a0fac8b6d9
No known key found for this signature in database

View File

@ -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 });
}