Skip to content

fix: support copy fallback on http - #5294

Merged
fangsmile merged 13 commits into
developfrom
fix/issue-5274-http-copy
Aug 28, 2026
Merged

fix: support copy fallback on http#5294
fangsmile merged 13 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
fangsmile and others added 10 commits August 25, 2026 16:41
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
Clear cut sources only after all copied source cells migrate.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Guard async clipboard tasks and preserve failed cut transactions.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Prevent async clipboard mirrors from overwriting event clipboard writes.
Require a VTable HTML marker before restoring copied formula text.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
@fangsmile
fangsmile merged commit 79315e9 into develop Aug 28, 2026
7 of 8 checks passed
@fangsmile
fangsmile deleted the fix/issue-5274-http-copy branch August 28, 2026 06:48
@hile1011

Copy link
Copy Markdown

你好 这个bug什么时候发版

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下 在线表格复制失败

3 participants