This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Copy To Clipboard – mobile + web

Description

This is the plugin to copy text to clipboard on click of a button on desktop browsers and mobile web browsers. It usage flash to auto copy on click of the button, for the browsers where flash is not available, it shows the popup with pre-selected text and user can copy it easily.
– Flexibility to change caption, width, height of the button.
– Option to add a suffix to copied text, by default suffixes your blog url.
– Option to call a javascript method on click of the button, by default sends Click event to your Google Analytics account.

It usage LMCButton, http://www.lettersmarket.com/view_blog/a-3-copy_to_clipboard_lmcbutton.html to copy text using flash and http://www.featureblend.com/javascript-flash-detection-library.html to detect flash.

Sample Use

[pw-clippy caption=»Copy»]Text to Copy goes here[/pw-clippy]

For more options checkout Installation section.

For more information on how to use or to report any issues/enhancement requests visit http://puzzlersworld.com/wordpress-copy-to-clipboard-plugin/

Screenshots

  • Screenshot for flash buttons, works on almost all desktop browsers, tablets.
  • Screenshot for no flash buttons, on mobile browsers.
  • Screenshot for pop-up, opens on clicking no flash button.

Installation

  1. Upload the pw-clipboard folder to the /wp-content/plugins/ directory or use plugin search – Admin > Plugins > Add new > Search for ‘Copy To Clipboard – mobile + web’
  2. Activate the Plug-in
  3. Add a the shortcode to your post like so: [pw-clippy caption="Copy"]Text to Copy goes here[/pw-clippy]
  4. Test that the this plug-in meets your demanding needs.
  5. Rate the plug-in and verify if it works at wordpress.org.
  6. Leave a comment regarding bugs, feature request, cocktail recipes at http://www.puzzlersworld.com/wordpress-copy-to-clipboard-plugin/

More options

  1. caption, default value=>Copy
  2. width, default value 50
  3. height, default value 25
  4. js, by default sends event to your google analytics account, you can pass empty string to avoid this.
  5. suffix, by default appends «via at the end, you can pass empty string to avoid this.

For more information on how to use and updates, visit http://www.puzzlersworld.com/wordpress-copy-to-clipboard-plugin.

FAQ

Can i change the button caption?

Yes, you can, by passing your caption in the shortcode as caption=»Your Caption».

What happens if flash is not supported on browser, like on mobile browsers

In that case, we simply open a popup with pre-selected text. User needs to simply copy it by using Ctrl+C or long press on mobile devices.

Reviews

Read all 8 reviews

Contributors & Developers

“Copy To Clipboard – mobile + web” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

2.3

Added settings page
Option to set which link to be appended after copied text.(post/homepage or no link)
Now it will append post page link By default.

2.1

  1. Handling newline, quotes and special characters correctly.
  2. Showing html popup instead of native browser popup on mobile devices

1.0.1

Changed default width to 50

1.0.0

First version with click and copy to clipboard functionality.