Skip to content

fix: handle SuperDoc context-menu paste (SD-2934)#3137

Merged
caio-pizzol merged 2 commits intostablefrom
caio/sd-2934-context-menu-paste-stable
May 5, 2026
Merged

fix: handle SuperDoc context-menu paste (SD-2934)#3137
caio-pizzol merged 2 commits intostablefrom
caio/sd-2934-context-menu-paste-stable

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

Cherry-pick of #3131 onto stable for production patch.

Context-menu paste now handles SuperDoc-origin clipboard HTML the same way as the keyboard paste path. It extracts embedded slice, body section properties, and media before any HTML cleanup, applies the slice paste when available, and strips hidden SuperDoc clipboard metadata before falling back to generic HTML handling. Without this, hidden base64 slice payload was parsed as document text on right-click → Paste.

Cherry-picked commits:

  • 780aa54 fix: handle SuperDoc context-menu paste (originally a916039 on main)
  • bbb62e5 test(super-editor): cover slice-less SuperDoc HTML and media MIME precedence (originally 20501b5 on main)

Verified: pnpm exec vitest run packages/super-editor src/editors/v1/core/InputRule.test.js src/editors/v1/core/helpers/superdocClipboardSlice.test.js → 38/38 passed.

Linear: SD-2934, IT-1003.

@caio-pizzol caio-pizzol requested a review from a team as a code owner May 5, 2026 00:17
@linear
Copy link
Copy Markdown

linear Bot commented May 5, 2026

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@caio-pizzol caio-pizzol merged commit 62446a1 into stable May 5, 2026
73 checks passed
@caio-pizzol caio-pizzol deleted the caio/sd-2934-context-menu-paste-stable branch May 5, 2026 00:36
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in vscode-ext v2.3.0

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 5, 2026

🎉 This PR is included in superdoc v1.31.2

The release is available on GitHub release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants