Copee Pastee
Back to this add-on's main page
View Other Add-ons From iain
Copy to Clipboard on Single Click?
General
|
Curtis Blackwell
|
| Posted: 17 December 2010 05:02 AM |
|
|
|
|
Is there a reason it needs to take two clicks to copy the tag to the clipboard? A single click would make a better UX.
Thanks for this, it makes implementing the LG Replace/NSM Transplant image replacement much simpler for clients.
|
|
|
|
|
iain
|
| Posted: 11 March 2011 09:12 PM |
# 1
|
|
|
Developer
|
Hey, sorry didn’t notice the post because it’s community supported - I don’t get notifications.
the trouble is the way the clipboard flash file is inserted into the dom. It’s absolutely positioned on the page hence the double click: by clicking once - it adds the flash file, second click it performs the copy to clipboard function then removes the flash file.
If the flash file was inserted on page load, flicking between tabs, or hiding/showing fields would result in flash files being located in the wrong places. Tricky to explain but very apparent when you see it working the other way.
|
|
|
|
|
Curtis Blackwell
|
| Posted: 12 March 2011 12:36 AM |
# 2
|
|
|
|
Hey, no problem. Thanks for the explanation.
|
|
|
|