-
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
Changing clipboard text from a callback #231
Comments
I'm in this exact situation too! Does anyone know if this is possible? Thanks, |
Please share a JSFiddle so we can debug this. |
Hello, Please find the js fiddle link below. The main goal is to able to catch and modify the content just before plugin sends it to clipboard. This is a very simplistic example. https://jsfiddle.net/sisir/0a2w6av3/2/ On my app I am trying to copy on a |
Maybe could be good to have the ability to concatenate in the clipboard the content of all targets matching certain class. |
Another idea that can be considered is a copy method that takes string and sends to clipboard. This will have a vast implementation use cases.
This will help implementing the plugin with keyboard shortcut library like Mousetrap |
@carlosjdelgado Setting multiple target may be confusing to the plugin because it will not know which element it should be copy from. Considering if there are multiple element available using same class. |
There are a number of errors on these JSFiddles.
Here's the end result @prionkor is looking for https://jsfiddle.net/zenorocha/d48hxmzy |
Hey guys, I added a proposal for this feature. Can you check #518? Thanks! |
Example
There is a copy button on a table cell, when clicked some contents from
<td>
elements (child of a particular<tr>
element) will be copied to clipboard (not all of them).Is it possible? I have looked into documentation and didn't find anything related. I didn't see any types of custom event listener for this plugin. Perhaps I missed something?
The text was updated successfully, but these errors were encountered: