From f60a07580ce9cbf39183ebef6f6585cdf2185357 Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Tue, 25 Aug 2026 15:12:05 +0000 Subject: [PATCH] fix: PDF/print export with a placeholder field selected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The selected-node highlight is color-mix(), whose computed value serializes as a color() function html2canvas cannot parse — the whole capture aborted. The export clone now strips selection highlights (which should not print anyway). Reproduced and verified headlessly. --- src/lib/export/pdf.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/export/pdf.ts b/src/lib/export/pdf.ts index 49a960a..d3e6e5b 100644 --- a/src/lib/export/pdf.ts +++ b/src/lib/export/pdf.ts @@ -71,6 +71,9 @@ function buildClone(paper: HTMLElement, pageW: number): { holder: HTMLElement; c [data-pdf-export] .paper .tiptap { background:none !important; } [data-pdf-export] .column-resize-handle, [data-pdf-export] .row-resize-handle { display:none !important; } [data-pdf-export] .selectedCell::after { display:none !important; } +/* No selection highlight in the output — and its color-mix background computes to a + color() value html2canvas cannot parse, which aborted the whole capture. */ +[data-pdf-export] .ProseMirror-selectednode { background:none !important; outline:none !important; box-shadow:none !important; } [data-pdf-export] .tiptap .is-editor-empty::before { content:none !important; } [data-pdf-export] .hf-bar { display:none !important; } [data-pdf-export] .tiptap [data-color] { color:var(--font-color, currentColor) !important; }