Skip to content

Support Clipboard API #490

New issue

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

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

Already on GitHub? Sign in to your account

Closed
strelec opened this issue Aug 15, 2021 · 2 comments
Closed

Support Clipboard API #490

strelec opened this issue Aug 15, 2021 · 2 comments

Comments

@strelec
Copy link

strelec commented Aug 15, 2021

There appears to be two API, synchronous and the more modern, Promise-based one. We shall support the latter. Can be done post-2.0, once this api is more than 95% supported.

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard

https://caniuse.com/async-clipboard

@armanbilge
Copy link
Member

@Quafadas
Copy link
Contributor

For posterity.

dom.window.navigator.clipboard.writeText("hi")

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

No branches or pull requests

3 participants