Can be used and styled like a button. Just drop it on your page and style it to your heart desire including using an image.
Then specify the input source and that is it.
See demo below:
Will add a feedback text (tooltip) to show the user that the text was copied in next update.
Added ability to use element id attribute. This field is dynamic so iāts very useful for repeating groups. You can name your repeating group elements using some text and their index and use the same expression for the copy to clipboard id.
Ability to cut. Please note that you can only cut editable text (input box or text area field that is enabled)
Now you get a feedback (tooltip) when you copy text. Also when you use the element id attribute the copied text will be highlighted to let you know it has been copied.
Very nice. It would be nice to be able to use either text or icons instead of an image as background. You could probably do this by enabling text as the background, and weād just be able to use [fa] [/fa] for icons.
hey @supernaturally, yeah thatās something that has come up.
Iām rewriting the whole plugin to enable having text and then changing the tooltip since its not working as expected.
iām currently working on 3 plugins at the same time (clipboard, tooltip and calendar) so my hands are really full. but hopefully the clipboard and tooltip should be out in a matter of hours or a day.
Hey guys iāve just released version 2 of the Copy to clipboard plugin.
Here is the update :
Added a Copy to Clipboard workflow action.
This means you donāt have to add the copy to clipboard element. You can simply call this action in a workflow.
Fixed the tooltip issue. Actually i implemented a different tooltip. Now when you click on the trigger element to copy a text, the tooltip will show and when you move your mouse out of the trigger element it will dissappear. I realized this is how most copy to clipboard tooltips behave.
@supernaturally, with this version you can use text, icons, buttons or whatever element you want and call the Copy to clipboard action in a workflow on click of the element.
@hgm.business, please what is your use case for the paste functionality. I have it in the code but havenāt exposed it as i wasnāt sure how you will want it. Will you want to specify an element to paste the clipboard in?
Maybe i misunderstood you. I have the ācopy to clipboardā action that can be used in a workflow.
If youāre talking about the paste action, i donāt have that yet.
This is fantastic. Would you be able to add āpaste from clipboardā as workflow action? (extremely useful for those of us doing a lot of cut and paste work).
@seanhoots I do have a problem using it in floating groups. The debugger shows the correct text to be copied but the clipboard remains the previous value. Any idea why this might be?
Edit: the element does work in a floating group but the workflow does not. I have now used the element as transparent overlay to a button and it seems to work so far. Also the Target element ID needs to be filled out even if the tickbox is not selected, otherwise bubble reports an error. I have just used arbitrary text.