Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

"Copy Full Code" not working on Safari #21

Open
jefffriesen opened this issue Oct 27, 2019 · 0 comments
Open

"Copy Full Code" not working on Safari #21

jefffriesen opened this issue Oct 27, 2019 · 0 comments

Comments

@jefffriesen
Copy link

This is minor and annoying to fix but it was a stumbling block for me.

The "Copy Full Code" didn't copy anything and the examples didn't have the complete data in it. Because I didn't realize this worked other browsers, I went digging through the repo to find the data.

I think this is what's not supported in Safari:

document.execCommand("copy")

Unfortunately, I don't have time right now to make a PR.

I understand if you would want to mark this as wontfix and move on. If you do want to fix it, here are some resources:
https://stackoverflow.com/questions/40147676/javascript-copy-to-clipboard-on-safari
https://github.com/zenorocha/clipboard.js
https://github.com/feross/clipboard-copy

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant