-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
Description
Motivation
-
Need a central place to validate/normalize app-generated paste payloads.
-
Current gaps:
- Multiline paste:
patternsaren’t applied because payload is treated as HTML. - Can’t apply cross-line rules (e.g., “entire bold line → header”) before blocks are created.
- Special formatting cases are hard to solve tool-by-tool (see Pasting from Google Docs Strips Basic Text Formatting (Bold, Italic, Underline) #2909).
- Multiline paste:
Proposal
- Add a top-level
pasteInterceptoroption that receivesPasteData(s) and can transform/validate them before insertion.
Prior art / PoC
- Special formatting context: Pasting from Google Docs Strips Basic Text Formatting (Bold, Italic, Underline) #2909
- Minimal implementation sketch: tylox-team@d3d88da
Next steps
- If this sounds reasonable, I can open a PR with the solution.
neSpecc