Import a Word document as a blog post, and add table blocks
- Table content blocks (migration 044): a grid of text, a row per line, cells split by |, the first row the header; cells take the same formatting as a paragraph; wide tables scroll on a phone - Blog posts -> Import from Word: the server reads the .docx (zip and XML read without a library, sizes capped) and creates an unpublished post through the CRUD engine: title, date, headings, paragraphs, lists, tables, bold, italic and links; the editor opens with a note of what came over and what didn't (images) - docs/importing.md, and an nginx block for the upload Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
adc88e5714
commit
7f12824c93
16 changed files with 656 additions and 6 deletions
|
|
@ -34,6 +34,7 @@ import panel from "./routes/panel.js";
|
|||
import adminEntities from "./routes/admin-entities.js";
|
||||
import media from "./routes/media.js";
|
||||
import clips from "./routes/clips.js";
|
||||
import imports from "./routes/import.js";
|
||||
import { CLIPS_DIR, startClipWorker } from "./clips.js";
|
||||
import { UPLOADS_DIR, writeMissingThumbs } from "./media.js";
|
||||
import { logSafe, startSessionSweeper } from "./auth.js";
|
||||
|
|
@ -179,6 +180,7 @@ app.route("/api/auth", auth);
|
|||
app.route("/api/admin", admin);
|
||||
// Before the entity routes, whose /:entity would claim /media.
|
||||
app.route("/api/admin", media);
|
||||
app.route("/api/admin", imports);
|
||||
app.route("/api/admin", clips);
|
||||
app.route("/api/admin", adminEntities);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue