fix: PDF/print export with a placeholder field selected
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.
This commit is contained in:
1 parent
162552cdbf
commit
f60a07580c
1 file changed
+3
@@ -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; }
|
||||
|
||||
Reference in new issue
Block a user