Skip to content

fix: support copy fallback on http - #5294

Open
fangsmile wants to merge 7 commits into
developfrom
fix/issue-5274-http-copy
Open

fix: support copy fallback on http#5294
fangsmile wants to merge 7 commits into
developfrom
fix/issue-5274-http-copy

Conversation

@fangsmile

Copy link
Copy Markdown
Contributor

Summary

  • Add synchronous event.clipboardData fallback when async clipboard API is unavailable.
  • Keep the existing async clipboard path unchanged for secure contexts and supported browsers.
  • Add Rush change file for @visactor/vtable.

Related issue

close #5274

Test plan

  • Run rushx compile for @visactor/vtable.
  • Verify HTTP copy behavior manually in a non-secure context.
  • Add BugServer copy/paste interaction cases for regression coverage.

🤖 Generated with Claude Code

Use event clipboard data when async clipboard is unavailable.
This keeps copy working in non-secure contexts.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
fangsmile and others added 2 commits August 25, 2026 14:41
Preserve cut ranges in the synchronous clipboard fallback path and keep
text/html output aligned with the async clipboard branch.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Keep fallback paste aligned with HTML clipboard data and let plain text
copy continue when custom HTML generation fails.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread packages/vtable/src/event/event.ts Fixed
Snapshot paste targets before async reads and decode copied HTML cell content
through DOM parsing so entity values round-trip correctly.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Handle CRLF after br tags, detect table markup case-insensitively,
and normalize decoded non-breaking spaces.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Snapshot copy and paste state before async clipboard work.
Only clear cut sources after a confirmed paste write.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Bind clipboard paste to a single data snapshot and cut operation.
Only clear source cells that were not overwritten by a successful paste.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
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.

[Bug] http下 在线表格复制失败

2 participants