ayn / click_to_copy_text_field
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
ef7686c
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
install.rb | ||
| |
javascript/ | ||
| |
lib/ | ||
| |
swf/ | ||
| |
tasks/ | ||
| |
test/ | ||
| |
uninstall.rb |
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

