Fieldtype

Community
Support

iain does not actively monitor this forum
(but you can still get help from other EE users).

EE 1
EE 2
Copee Pastee

Back to this add-on's main page
View Other Add-ons From iain

     

You must be logged in to post.

Copy to Clipboard on Single Click?

General

Curtis Blackwell
Curtis Blackwell

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
# 1
Developer
iain

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
# 2
Curtis Blackwell

Hey, no problem. Thanks for the explanation.