editor improvements

* add callout, youtube embed, image, video, table, detail, math
* fix attachments module
* other fixes
This commit is contained in:
Philipinho
2024-06-20 14:57:00 +01:00
parent c7925739cb
commit 1f4bd129a8
74 changed files with 5205 additions and 381 deletions
@@ -22,7 +22,9 @@ export class DomainMiddleware implements NestMiddleware {
return next();
}
// TODO: unify
(req as any).workspaceId = workspace.id;
(req as any).workspace = workspace;
} else if (this.environmentService.isCloud()) {
const header = req.headers.host;
const subdomain = header.split('.')[0];
@@ -34,6 +36,7 @@ export class DomainMiddleware implements NestMiddleware {
}
(req as any).workspaceId = workspace.id;
(req as any).workspace = workspace;
}
next();