feat(training): rich-text lessons with inline images and 25 MB manuals
CI / build (push) Has been cancelled
CI / build (push) Has been cancelled
Admins were authoring plain-text lessons, which made illustrated tutorials and reordering images impossible. Lesson bodies are now sanitized HTML from a Tiptap editor with alignment, sizing, drag-reorder and alt text, and inline images reuse the training_resources table so no migration is needed. Attachments grow to 25 MB, PDFs stream inline, and SVG is rejected because it can execute as a document. Legacy plain-text bodies are normalized on read. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -19,6 +19,10 @@
|
||||
"dependencies": {
|
||||
"@radix-ui/react-label": "^2.1.17",
|
||||
"@radix-ui/react-slot": "^1.5.0",
|
||||
"@tiptap/extension-image": "^3.34.0",
|
||||
"@tiptap/pm": "^3.34.0",
|
||||
"@tiptap/react": "^3.34.0",
|
||||
"@tiptap/starter-kit": "^3.34.0",
|
||||
"archiver": "^8.0.0",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
@@ -31,6 +35,7 @@
|
||||
"postgres": "^4.1.1",
|
||||
"react": "19.1.0",
|
||||
"react-dom": "19.1.0",
|
||||
"sanitize-html": "^2.18.2",
|
||||
"sharp": "0.34.5",
|
||||
"tailwind-merge": "^3.7.0",
|
||||
"tailwindcss-animate": "^1.0.7",
|
||||
@@ -48,6 +53,7 @@
|
||||
"@types/nodemailer": "^8.0.2",
|
||||
"@types/react": "^19",
|
||||
"@types/react-dom": "^19",
|
||||
"@types/sanitize-html": "^2.16.2",
|
||||
"dotenv": "^18.0.10",
|
||||
"drizzle-kit": "^0.31.11",
|
||||
"eslint": "^9",
|
||||
|
||||
Reference in New Issue
Block a user