Rich text editor - how to copy contents with formatting to clipboard

I want users to be able to copy to clipboard the contents in Bubble’s official rich text editor with formatting, so they can paste easily in Word, WordPress, etc.

However, when using the state “value”, it comes with the bbcode, e.g.

[h2]some header[/h2]

I tried tinkering with the plugin code, and at best, I can only access the HTML in plaintext, e.g.

<h2>some header</h2>

What I really want is for users to be able to copy the formatted text and not plaintext with those tags.

Any idea? Thanks!

Is there no solution on this? I have basically the same problem.

I also found the following, but I think it doesn’t work either: Is it possible to "copy to clipboard" from a "rich text editor"?

No, it’s not working.
Yesterday I sent a video to Zeroqode team since they are the owners of the plugin copy to clipboard that I’m using (@ZeroqodeSupport). They’ll check if it’s possible to achieve this.

Hi @joaquintorroba and @nilsklinger1,

We’ve created an investigation for the developers to determine if the plugin can copy text in the specified format instead of as plain text with those tags.

We’ll inform you as soon as we receive an answer from the developers!

Thanks a lot for your understanding :pray:

Best regards :sunflower:

Browse all Zeroqode Plugins for Bubble
Banner_Last3

1 Like

Ofc, thanks for the reply!

1 Like

Hey, just saw that the plguin “markdown parser” has this event. Maybe that can help.

Hi @joaquintorroba,

Thanks for sharing this information! However, we suspect that this is happening because the Copy to Clipboard plugin is copying the text in plain text format instead of preserving the original formatting. The developers are still investigating this and will provide a response as soon as possible!

In the meantime, please let us know if you have any other questions :pray:

Best regards :hibiscus:

Browse all Zeroqode Plugins for Bubble
Banner_Last3

Thanks for the reply.
Perfect, let’s wait and hope the zeroqode devs can solve this :muscle:t3:.

2 Likes

Hey @joaquintorroba can you try if it work with this plugin?q

Hi @nilsklinger1,

We’re still working on implementing an action to copy the text in the specified format in the Copy to Clipboard plugin. The Markdown Parser plugin has a copy feature, but it’s only for code blocks since they have a copy button - screenshot for reference - which would trigger the “Code copied” event.

Please don’t hesitate to ask if you have any further questions. We’d be happy to provide more information and assistance :hugs:

Best regards :sunflower:

Browse all Zeroqode Plugins for Bubble
Banner_Last3

1 Like

Good to know you’re still working on this, looking forward to the solution. Thanks guys!

1 Like

Hi everyone :wave:

We have some exciting news about the Copy to Clipboard plugin! A new update - version 2.36.0 - has been released, introducing a new action called “Copy to clipboard with formatting.”

This action has two fields. You need to assign the ID of the element you want to copy in the first field. The second optional field allows you to select a nested element inside the main element, which is very useful for RTE elements with tooltips.

We’ve added more information in the show documentation field to help everyone understand this feature.

However, we’ve noticed that pasting to an alternative RTE, such as plugins using the Editor.js library, doesn’t work as expected. This is because the library itself accepts formatting differently.

We’d appreciate it if you could update your plugin to include this new feature and test it out. Any feedback would be great :pray:

Best regards :hibiscus:

Browse all Zeroqode Plugins for Bubble
Banner_Last3