diff --git a/apps/client/src/share.ts b/apps/client/src/share.ts index 60615b686..0dd19d36d 100644 --- a/apps/client/src/share.ts +++ b/apps/client/src/share.ts @@ -1,5 +1,6 @@ import "./stylesheets/bootstrap.scss"; import "normalize.css"; +import "@triliumnext/ckeditor5/content.css"; /** * Fetch note with given ID from backend diff --git a/apps/server/src/assets/views/share/page.ejs b/apps/server/src/assets/views/share/page.ejs index 5a9bd95a5..d15cf515e 100644 --- a/apps/server/src/assets/views/share/page.ejs +++ b/apps/server/src/assets/views/share/page.ejs @@ -16,9 +16,6 @@ <% if (!note.isLabelTruthy("shareOmitDefaultCss")) { %> <% } %> - <% if (note.type === 'text' || note.type === 'book') { %> - - <% } %> <% for (const cssRelation of note.getRelations("shareCss")) { %> <% } %> diff --git a/apps/server/src/routes/assets.ts b/apps/server/src/routes/assets.ts index 3a09fb0d0..220f1fe99 100644 --- a/apps/server/src/routes/assets.ts +++ b/apps/server/src/routes/assets.ts @@ -4,7 +4,6 @@ import { fileURLToPath } from "url"; import express from "express"; import { getResourceDir, isDev } from "../services/utils.js"; import type serveStatic from "serve-static"; -import contentCss from "@triliumnext/ckeditor5/content.css"; const persistentCacheStatic = (root: string, options?: serveStatic.ServeStaticOptions>>) => { if (!isDev) { @@ -20,8 +19,6 @@ async function register(app: express.Application) { const srcRoot = path.join(path.dirname(fileURLToPath(import.meta.url)), ".."); const resourceDir = getResourceDir(); - app.use(`/${assetPath}/libraries/ckeditor/ckeditor-content.css`, (req, res) => res.contentType("text/css").send(contentCss)); - if (isDev) { const publicUrl = process.env.TRILIUM_PUBLIC_SERVER; if (!publicUrl) {