這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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.