该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Copy To Clipboard – mobile + web

描述

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/

屏幕截图

  • 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.

安装

  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.

常见问题

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.

评价

阅读所有8条评价

贡献者及开发者

“Copy To Clipboard – mobile + web” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

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.