-
Notifications
You must be signed in to change notification settings - Fork 4k
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
it is a good plugin but I wonder why I have to bind to a specific DOM rather than provide API only for freely use #446
Comments
Agree on this. I am working on HTML5 games that only have a root canvas element. I need to fire the clipboard behaviour from a custom callback (that, following the framework chain, by sure will start eventually at some canvas.onClick handler). it would be great if I can fire clipboard.copy(mytext) directly. |
Agree with @cesarpachon Hope it will be possible to use clipboard.copy freely!!! It is sometimes difficult to create a button (DOM) bind to the clipboard directly.... |
This was asked previously and the request was denied: #329 |
This library is great for handling the cross browser concerns when it comes to copying. However there are modern situations where a blanket DOM selector isn't necessary.
Anyway, just my opinion. We're just ended up writing a function that simply spawns a new ClipboardAction with dummy options after a click event, which is still within the bounds of the execCommand security restrictions. |
Minimal example
Expected behaviour
I thought that by going to the page '...' and pressing the button '...' then '...' would happen.
Actual behaviour
Instead of '...', what I saw was that '...' happened instead.
Browsers affected
I tested on all major browsers and only IE 11 does not work.
The text was updated successfully, but these errors were encountered: