MyBB Community Forums
MyBB Community Forums
>
1.8 Support
>
General Support
> Copy To Clipboard Button
Full Version:
Copy To Clipboard Button
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
Jack Merricks
2016-03-10, 04:55 AM
Hello I stumbled across a forums page that had one post where someone had added a "click here to copy text" button that they had embedded in their thread i was wondering if this is possible and if so how can i do it
Aiko
2016-03-10, 04:59 AM
http://www.htmlgoodies.com/beyond/javasc...hp/3458851
I found this on google. Stock mybb does not support this unfortunatly
grork
2016-03-10, 07:50 AM
The old method is via flash, but flash is going to die, so don't do it.
HTML5 provides Clipboard API, with very low support (
http://caniuse.com/#feat=clipboard
) . You can check API here :
http://mobile.htmlgoodies.com/html5/othe...h9tM7GHJWF
Another way is using
clipboard.js
that works pretty well.
MyBB Community Forums
>
1.8 Support
>
General Support
> Copy To Clipboard Button