Clipboard copy and paste sanitization
Copy applies the same formula guard as export to plain-text and HTML clipboard flavors. Paste reads plain text only by default, strips markup, enforces size limits, and validates pasted values against column types.
Planned. This page shows the specification from issue #209. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
An editable grid with a clipboard sandbox textarea prefilled with mixed payloads.
Expected behavior
Pasting stores plain text values. Oversized pastes are rejected with an announced message. Copied cells containing formulas carry the guard prefix.
Planned API surface
clipboard.formulaGuardclipboard.pasteFormat: 'text' | 'html-sanitized'clipboard.maxPasteCellsclipboard.maxPasteBytesonBeforePasteonPasteRejectedAcceptance criteria
- The HTML clipboard flavor is ignored unless pasteFormat is 'html-sanitized', which routes through the F03 sanitizer. (pending)
- Pastes over the limits are rejected atomically with no partial write. (pending)
- Type validation failures report per-cell reasons in onPasteRejected. (pending)
- Copy output never contains unescaped HTML in the text/html flavor. (pending)