[SOLVED] Paste Element or Style no more working on FireFox (1.5.1-rc or 1.5.1)

Bricks Version: 1.5.1 RC and 1.5.1
Browser: FireFox
OS: Windows
URL: (a link to a page that illustrates the issue would be really helpful)

Sorry, my bad, I didn’t check as mentioned by @Michael

======

Since updated to v1.5.1-rc, Paste functionality on builder no more working on FireFox browser.

You will noticed the Copy is working good + a green copied message shown, but Paste is doing nothing.

======Below are some of technical researches======

After checked the main.min.js file, noticed the paste handler function using the browser API (navigator.clipboard.readText()).

If refer to webAPI, readText() seems supported in all browsers, but actually it’s using read() method

And this is the root cause that Paste function not working anymore since 1.5.1

PS: In, v1.5 and all previous versions, Bricks using event.clipboardData to retrieve the copied data, so it was working fine in Firefox.

Workaround for FireFox users in v1.5.1:

  • Open a new tab, address bar enter about:config, accept the ricky thing checkbox
  • Search for “dom.events.asyncClipboard.readText”
  • Double click it to change the value as true
  • Close and Open again the browser
  • Everytime when trying to perform paste in Bricks builder, you need to click on a “Paste” small floating menu (by Firefox) to complete the action. (refer to GIF)

workaround

Hey @itchycode They did note this here:

But its good of you to add it here in the forum as can be searched / used more :+1:

1 Like

@Michael oh my gosh… silly me.
My bad… didn’t read that and wasted so much time to troubleshoot ><

But still, perhaps that only use navigator.clipboard when doing cross domain copy paste.
Otherwise firefox user needs additional clicks to copy & paste within same page or same domain.

1 Like

Yeah, I think that’s a fair ask. I actually assumed it worked like that when I first read about it.

To be fair Jenn, I only found the resource by chance from the changelog to be honest, I think it will be a good resource if kept updated and widely spread.

Although you spent a lot of time debugging, you did make a great post for others who will no doubt have the issue on the forum and it will surely help them! so all is not wasted :slight_smile:

Might be with changing it to a ‘how to’ if you have the permission to do so?

1 Like