Copy to Clipboard Plugin

I’d love it if someone could create a plugin where HTML code can be copied to the clipboard (for an example, kind of like Rafflecopter does). Basically, a text area with the code in it and a button beneath it that says “Copy to Clipboard.” When the button is clicked, whatever HTML code is in the text box is auto-copied to the clipboard.

Thanks!

I was looking for a Wordpress plugin. Can a jQuery plugin be used on WP? I’m clueless about it, lol. :slight_smile:

Ok, how do I email you? (Sorry if I’m being slow.)

Yeah, I meant your email address. Thanks!

Ok, I just emailed you, Shane.

Have a look:

  1. https://www.google.com/search?q=jquery+copy+to+clipboard
  2. http://wordpress.org/plugins/wp-clippy

I tried the wp-clippy before, it messed up the HTML and didn’t function properly. The jquery version didn’t work either, but I’ll try it again. Thanks!

Still hoping someone will develop a plugin that works with HTML though, that’s be lovely!

There you go :slight_smile:



http://www.steamdev.com/zclip/



This is the only cross browser solution since it uses flash to copy the data to the clipboard.



It is not a WP plugin, but you could actually just use the javascript code directly in a page.