Skip to content

Fix copy / paste behavior when using Firefox or Edge [Clipboard / Selection API] (#51) #62

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Mar 17, 2019

Conversation

anlambert
Copy link
Contributor

This PR is another attempt to fix #51 but using an approach different from the one in #60 (as pointed here).

Here, the copy / paste issue when using Firefox or Edge is resolved using the Clipboard API and the Selection API.

Apart a workaround needed for Microsoft Edge, I find that solution much more elegant and less complicated than the first one I have already submitted (#60). Also, there is no changes in the HTML layout and considering the APIs mentioned above seem widely supported, I think this solution should be preferred.

CSS selectors improvements as introduced in #60 are also still part of that new PR.

@anlambert anlambert changed the title Fix copy / paste behavior when using Firefox or Edge [Clipboard API] (#51) Fix copy / paste behavior when using Firefox or Edge [Clipboard / Selection API] (#51) Mar 13, 2019
@anlambert anlambert force-pushed the fix-copy-paste-issue-clipboard-api branch 4 times, most recently from 32de479 to cfd1a7e Compare March 14, 2019 16:03
@anlambert anlambert force-pushed the fix-copy-paste-issue-clipboard-api branch from cfd1a7e to 0175fd4 Compare March 14, 2019 17:41
@wcoder wcoder changed the base branch from master to dev March 17, 2019 18:38
@wcoder wcoder self-requested a review March 17, 2019 18:38
@wcoder wcoder merged commit fbeff83 into wcoder:dev Mar 17, 2019
swhmirror pushed a commit to SoftwareHeritage/swh-web that referenced this pull request Mar 27, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants