sudodoki / copy-to-clipboard

Copy stuff into clipboard from your browser using JS
http://sudodoki.github.io/copy-to-clipboard/example/
MIT License
1.28k stars 132 forks source link

execCommand is now obsolete #108

Open fungjj92 opened 3 years ago

fungjj92 commented 3 years ago

As of early 2020, the execCommand feature is now obsolete :(

The best next alternative seems to be on the DOM navigator object which is well-supported across browsers but requires HTTPS which makes it an indirect fit for local development. Another fairly current conversation.

sudodoki commented 3 years ago

Thanks for letting me know. Don't know what's the future of this project going to be given this news.

mlnor27 commented 3 years ago

@sudodoki I would love to see an updated version of the package with the use of navigator.clipboard along with document.execCommand to preserve the compatibility with older browsers. Please keep this project going, I could work on a PR if you agree.