Add Word export, column dragging and the rest of editor parity
CI / go (Server) (push) Failing after 8m51s
CI / go (Web-App) (push) Successful in 11m46s
CI / mobile (push) Failing after 3m44s
CI / docker (push) Successful in 54m15s
Docs / build (push) Successful in 12m28s
Docs / deploy (push) Skipped
CI / frontend (push) Failing after 7m47s
CI / desktop (ubuntu-latest) (push) Successful in 1h27m22s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
CI / go (Server) (push) Failing after 8m51s
CI / go (Web-App) (push) Successful in 11m46s
CI / mobile (push) Failing after 3m44s
CI / docker (push) Successful in 54m15s
Docs / build (push) Successful in 12m28s
Docs / deploy (push) Skipped
CI / frontend (push) Failing after 7m47s
CI / desktop (ubuntu-latest) (push) Successful in 1h27m22s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s
Word export: pages download as .docx from the page menu and from
GET /pages/{id}/export?format=docx. The file keeps headings, alignment,
lists, to-dos, quotes, callouts, code, tables with a repeating header
row, text formatting, colours, highlights, links and the page's images.
Word import now reads callouts, to-dos and shaded highlights, so a page
exported to Word imports back as it was. The user guide says how to move
pages to Notion, whose Import reads Word and Markdown files.
Editor:
- Columns move like rows: a grip on the column's top edge drags it, and
the table toolbar and Ctrl+Alt+Left/Right move it from the keyboard.
Row and column moving share tablemove.ts.
- Ctrl+Shift+C copies a link to the block the cursor is in.
- Headings 4 to 6 sit under "Other headings" in the slash menu; a search
still finds them directly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d28f1e02db
commit
3dea2bb2f4
28 files changed
+1630
-432
No files matched your search
@@ -484,7 +484,7 @@ export function createClient(opts: ClientOptions) {
|
||||
"DELETE",
|
||||
`/api/v1/pages/${encodeURIComponent(id)}/access/groups/${encodeURIComponent(groupId)}`,
|
||||
),
|
||||
export: (id: string, format: "markdown" | "html" | "pdf") =>
|
||||
export: (id: string, format: "markdown" | "html" | "pdf" | "docx") =>
|
||||
download(`/api/v1/pages/${encodeURIComponent(id)}/export${query({ format })}`),
|
||||
/** Records that the user opened the page, for their recent list. */
|
||||
visit: (id: string) => post(`/api/v1/pages/${encodeURIComponent(id)}/visit`),
|
||||
|
||||
Vendored
+4
-3
@@ -1508,8 +1508,8 @@ export interface paths {
|
||||
cookie?: never;
|
||||
};
|
||||
/**
|
||||
* Download the page as Markdown, HTML or PDF
|
||||
* @description Attachment links point at DOCWELL_PUBLIC_URL and need a file token to open. PDFs are A4 with a bookmark per heading; images stored on the page are drawn in, diagrams become a link to their file and Mermaid charts show their source.
|
||||
* Download the page as Markdown, HTML, PDF or Word
|
||||
* @description Attachment links point at DOCWELL_PUBLIC_URL and need a file token to open. PDFs are A4 with a bookmark per heading; images stored on the page are drawn in, diagrams become a link to their file and Mermaid charts show their source. Word files (docx) embed the page's images the same way and keep headings, lists, to-dos, callouts, tables, colours and alignment in a form Docwell imports back.
|
||||
*/
|
||||
get: operations["exportPage"];
|
||||
put?: never;
|
||||
@@ -5586,7 +5586,7 @@ export interface operations {
|
||||
exportPage: {
|
||||
parameters: {
|
||||
query?: {
|
||||
format?: "markdown" | "html" | "pdf";
|
||||
format?: "markdown" | "html" | "pdf" | "docx";
|
||||
};
|
||||
header?: never;
|
||||
path: {
|
||||
@@ -5605,6 +5605,7 @@ export interface operations {
|
||||
"text/markdown": string;
|
||||
"text/html": string;
|
||||
"application/pdf": string;
|
||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": string;
|
||||
};
|
||||
};
|
||||
400: components["responses"]["Error"];
|
||||
|
||||
Reference in new issue
Block a user