public
Description: rails plugin to provide click_to_copy_text_field helper
Homepage:
Clone URL: git://github.com/ayn/click_to_copy_text_field.git
commit  ef7686c1415b0cf7f178f00b3e40c86f66aad8a6
tree    8844d006ae98f234acd82928160e01d71a99bb70
parent  9d738232b6a205fbf73559fba19f76b400b043af
name age message
file MIT-LICENSE Thu Oct 09 17:42:46 -0700 2008 first commit for click_to_copy_text_field plugin [ayn]
file README Fri May 08 13:17:06 -0700 2009 Until jQuery Clipboard is fixed, I'm using Clip... [ayn]
file Rakefile Thu Oct 09 17:42:46 -0700 2008 first commit for click_to_copy_text_field plugin [ayn]
file init.rb Thu Dec 04 16:17:06 -0800 2008 updating this with working version from another... [ayn]
file install.rb Fri May 08 12:33:00 -0700 2009 Upgraded jQuery.clipboard to 2.0.1, this disabl... [ayn]
directory javascript/ Fri May 08 12:33:00 -0700 2009 Upgraded jQuery.clipboard to 2.0.1, this disabl... [ayn]
directory lib/ Thu Dec 04 16:17:06 -0800 2008 updating this with working version from another... [ayn]
directory swf/ Thu Oct 09 18:07:10 -0700 2008 update [ayn]
directory tasks/ Thu Oct 09 17:42:46 -0700 2008 first commit for click_to_copy_text_field plugin [ayn]
directory test/ Thu Oct 09 17:42:46 -0700 2008 first commit for click_to_copy_text_field plugin [ayn]
file uninstall.rb Thu Oct 09 17:42:46 -0700 2008 first commit for click_to_copy_text_field plugin [ayn]
README
ClickToCopyTextfield
====================

click textfield to copy to clipboard, note that this plugin requires jQuery (or jrails).

This uses the Clipboard 2.0 jQuery plugin [http://plugins.jquery.com/project/clipboard]

This probably won't work with Flash 10 as Adobe has changed permissions in Flash. The author of jQuery Clipboard plans 
to fix it for Flash 10. In the meantime, you can use this instead for click to copy: 
http://github.com/mojombo/clippy/tree/master

Example
=======

in your view or layout, include the javascript:
<%= javascript_include_tag 'jquery.clipboard.min.js' %>

and then do something like this:
<%= click_to_copy_text_field_tag 'share-link-1', "http://some_link", :size => 10 %>

Copyright (c) 2008 Andrew Ng, released under the MIT license