When I click on copy button and the browser does not support the clipboard.js pluging, an alert "This browser does not support the clipboard.js plugin, please copy manually." appear. So I suggest to apply the suggested on the plugin's page(https://clipboardjs.com/):
That show a tooltip saying "Press Ctrl+C to copy the selected text" when error event is called because of the safari failures
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | clipboardjs-fallback_tooltip_message-2671740-4.patch | 1.37 KB | kenianbei |
| #2 | tooltip_saying_pressctrlc_to_copy-2671740.diff | 1.48 KB | m.attar |
Comments
Comment #2
m.attar commentedComment #3
kenianbei commentedThanks for the patch... you have extra spaces on these lines:
extra spaces
extra spaces
extra spaces
Lastly, as specified in the code comment, the feature detection is not robust enough for production. If I get time I'll look into best options here. Feature detection is always better than user agent detection.
Comment #4
kenianbei commentedFixes coding issues. Looks like there isn't any easy way to check for features rather than by user agent, so I've left that in. Since there is a final fallback should be fine. Will commit once we get some more people testing.
Comment #5
kenianbei commentedComment #7
kenianbei commented