fix: support copy fallback on http - #5294
Open
fangsmile wants to merge 7 commits into
Open
Conversation
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
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>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
event.clipboardDatafallback when async clipboard API is unavailable.@visactor/vtable.Related issue
close #5274
Test plan
rushx compilefor@visactor/vtable.🤖 Generated with Claude Code