copy-to-clipboard
copy-to-clipboard copied to clipboard
Copy stuff into clipboard from your browser using JS
This is a great library, but we are facing some issue. We have used this library in a project to copy an HTML table when clicked on a button. It...
The latest version of copy-to-clipboard contains some vulnerabilities according to "npm audit": 16 vulnerabilities (1 low, 4 moderate, 6 high, 5 critical) I'm not using this package directly but instead...
``` function copy(text, options) { var debug, message, reselectPrevious, range, selection, mark, success = false; if (!options) { options = {}; } ... mark.addEventListener("copy", function(e) { e.stopPropagation(); // 这里必须传默认值,否则根本不执行复制逻辑,并且你的 options...
I think it is good feature to disable prompt. For displaying your own component instead prompt for example. I suppose is good idea to add some bool property to options...
Replace the span label with the pre label. In order to solve the problem, the text that is copied and pasted into excel is also wrapped
MacOS Mojave 10.14.6 Tested on both Chrome 81 and Safari 13 copy-to-clipboard 3.3.1 This seems like a pretty fundamentally critical bug. When I use the function on a button's `onClick`...
copyed in the second time in chrome
It would be great to have the option to support text/html and text/plain in parallel when one or the other is available. For example: paste in notepad the text/plain and...
This is a new promise-based API available available in some browsers which does not require DOM interaction to copy a string: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/writeText https://jsfiddle.net/p73yv6re/