mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
Revert "chore(dx/server): remove dependency on CKEditor for now"
This reverts commit 4739e2e3b265bd2e6f7e603bb0e380f613186d7e.
This commit is contained in:
parent
6163ab8c42
commit
53df7835d3
@ -21,6 +21,7 @@ import type AttributeMeta from "../meta/attribute_meta.js";
|
|||||||
import type BBranch from "../../becca/entities/bbranch.js";
|
import type BBranch from "../../becca/entities/bbranch.js";
|
||||||
import type { Response } from "express";
|
import type { Response } from "express";
|
||||||
import type { NoteMetaFile } from "../meta/note_meta.js";
|
import type { NoteMetaFile } from "../meta/note_meta.js";
|
||||||
|
import cssContent from "@triliumnext/ckeditor5/content.css";
|
||||||
|
|
||||||
type RewriteLinksFn = (content: string, noteMeta: NoteMeta) => string;
|
type RewriteLinksFn = (content: string, noteMeta: NoteMeta) => string;
|
||||||
|
|
||||||
@ -513,6 +514,8 @@ ${markdownContent}`;
|
|||||||
if (!cssMeta.dataFileName) {
|
if (!cssMeta.dataFileName) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
archive.append(cssContent, { name: cssMeta.dataFileName });
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
6
apps/server/src/types.d.ts
vendored
6
apps/server/src/types.d.ts
vendored
@ -23,6 +23,12 @@ declare module "is-animated" {
|
|||||||
export default isAnimated;
|
export default isAnimated;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare module "@triliumnext/ckeditor5/content.css" {
|
||||||
|
const content: string;
|
||||||
|
export default content;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
declare module "@triliumnext/share-theme/*.ejs" {
|
declare module "@triliumnext/share-theme/*.ejs" {
|
||||||
const content: string;
|
const content: string;
|
||||||
export default content;
|
export default content;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user