[New Plugin] Air Copy to clipboard

Is it possible to add a line break when you copy from static text?

Hi @brad.h!

I’m afraid the plugin doesn’t support this feature as of now. We will check how feasible and possible it is to add this to the plugin.
Unfortunately, we cannot provide you with any time estimations on this matter as this is a low-priority feature request.

Please let us know if there is anything else we can help you with.

Regards,
Zeroqode Support Team

@ZeroqodeSupport

It looks like this plugin doesn’t work when embedded within an iFrame. Do you know/have any workarounds for this?

Hi @messly,
Thank you for reaching out.

We’ve tried to reproduce your request on our side, and tested the plugin web demo page within an iframe. You are right, by default it will not work, since an iFrame is a separate Box with its own buffer.

We have checked a few resources and found out how to solve this.
Solution: it requires adding a line of custom code in the HTML of your iframe.
allow="clipboard-read; clipboard-write"

Please check the screenshot below.

Useful resources:
https://web.dev/async-clipboard/#permissions-policy-integration
https://w3c.github.io/webappsec-permissions-policy/
https://caniuse.com/?search=clipboard-read

Note: this feature is supported only by Google Chrome and Opera browsers.

We hope the above will be useful to you.
Best regards, :slight_smile:
Zeroqode Support Team.

1 Like

Hi @ZeroqodeSupport,

I am trying to get it to work in a repeating group, but it doesn’t work. Here is a screenshot:



Do you have any suggestions why?

Thank you,
Kaya

Hello @kaya

Thank you for reaching out.

The setup seems to be correct, but there are some things that we would like you to check and change. Please do the following:

  1. For the Trigger element ID and ID Attribute, please change so that the “Current cell’s index” is placed before the word “copy”. Just like it is illustrated in the attached screenshots.


    Screenshot 2022-06-21 at 14.53.45

  2. Please make sure that the target element ID is actually "text" and not a group, as it is in your case right now.

Please do check and change the mentioned things and let us know the result :slight_smile:

Regards,
Zeroqode Support Team

Thank you! It worked!

1 Like

@ZeroqodeSupport I have one more question. I was able to get it to work in my web app and now I am trying to get it to work in a chrome extension. I used this plug to create the extension Google Chrome Extensions Plugin | Bubble. But copy to clipboard is not working. Do you know what could be a reason?

Hi @kaya,
Thank you for reaching out, and sorry for the late reply due to the weekend. :pray:

Unfortunatly it’s hard to say why it is not working because we haven’t worked with the Google Chrome Extensions Plugin. Can you please provide setup screenshots of the plugin element and the workflow of copying text from the clipboard?
Have you tried to debug it in the Console, did you get any error messages that will help us understand the issue?

Thank you and looking forward to your reply.
Best regards,
Zeroqode Support Team.

@ZeroqodeSupport Sorry for the late reply, but I was on vacation.

The Chrome Plugin is basically embedding a Bubble page into an exention so when I test in Bubble everything is working as it should as I am testing in a web version. But when I open the extension, it doesn’t work. It seems like an extension is not allowing to copy to clipboard. I am wondering if there is something that you can add on the back-end that would allowed copy to clipboard in a chrome extention. I got this feedback: “I assume copying to the clipboard is not supported via standard javascript in chrome extensions.”

Thank you for your help,
Kaya

Hello, @kaya. Thanks for the details.

Indeed, adapting the Copy to Clipboard plugin for work in Chrome Extension will require special permissions, since it is an iFrame. Unfortunately, we can not assist with this.

Apologies for not being helpful on this matter. :pray:

Regards,
Zeroqode Support Team

@ZeroqodeSupport is it possible to copy to clipboard every cell’s text in a repeating group? Not just one cell in a RG.

Hello @alex.pethick

Thanks for reaching out.

It is currently possible to copy the text from each repeating group’s cell, but not all of the cell’s text at once. However, you can have a look at our demo example, and maybe it suits your use case: https://seanhootsdemopro.bubbleapps.io/copy_to_clipboard?debug_mode=true.

In case you have any other questions, just let us know :slight_smile:

Regards,
Zeroqode Support Team

@ZeroqodeSupport OK, yeah I want to be able to copy ALL of the cell’s from a RG, not just from each. Would be great to be able to support that. Is it possible?

One more question:

I have a container group with multiple groups (and text elements) inside of it. When I add the container group’s id as the “target element id” I’m able to copy all of the text from each of those groups within the container. Great…

However, there is ONE group inside of that container I want to ignore and not copy. And from a design/visual standpoint it needs to be inside of that container.

Is there any way to ignore that group + text element?

At the current moment, it is not possible to copy all of the cells from RG, however, we will take a look if there is an improvement that can be made to the plugin. The same thing can be said for ignoring the element inside the group, unfortunately, the plugin copies the group’s container content, and no groups can be excluded from that.

In case there are any other questions, simply let us know.

Regards,
Zeroqode Support Team

1 Like

Hey @ZeroqodeSupport - just circling back. Any chance you’ve made progress on the above? Thank you!

Hello, @alex.pethick,

No, unfortunately, there is no progress on the above request. It is a low-priority one, thus there is no time frame for it or urgency for implementation. Still, please be sure we will add a notification in this thread, once there are any changes. :slightly_smiling_face:

Regards,
Zeroqode Support Team

Actually, for those who may need this, I just found a workaround to copy to clipboard ALL cells’ text in a repeating group:

  1. Place RG in a Group
  2. Give the Group an ID
  3. Create Button
  4. Give the Button an ID
  5. Place Air Copy to Clipboard element on page
  6. Settings for Air Copy to Clipboard element:
  • Use ID Attribute (checked)
  • Target element ID attr = the Group ID from Step 2
  • Action type = copy
  • Trigger element ID = the Button ID from Step 4

As far as ignoring or excluding text or groups from being copied, I’m also going to experiment some time with using states to hide elements before the copy workflow happens. E.g. I’m thinking upon the hover of a button > hide groups/elements > click button to copy. I don’t know…requires more thinking and experimenting.

1 Like

@ZeroqodeSupport

Is it possible to copy hyperlinked text (shown on a Bubble page) and store it in the clipboard so that you can paste in a document with the same text hyperlinked?

Hello @alex.pethick

Thanks for reaching out.

Unfortunately, it is not possible to copy the hyperlinked text, and only possible to copy the text element. However, we will investigate this possibility and we’ll get back once we check if it is something that we would be able to add in the next plugin update.

Regards,
Zeroqode Support Team