trix icon indicating copy to clipboard operation
trix copied to clipboard

Broken copy/past from Whatsapp

Open victorlcampos opened this issue 1 year ago • 6 comments

When you copy a imagem from whatsapp web and past it on trix, it dont show

image

And network tab show a error

image
Steps to Reproduce
  1. Copy a imagem from whatsapp web and past on trix
Details
  • Trix version: We use 1.3.2 on production, but last one occurs too
  • Browser name and version: Chrome
  • Operating system: Mac (but happens on anyone)

victorlcampos avatar Aug 20 '24 18:08 victorlcampos

Is it because the browser you're running Trix in doesn't have access to those images? We get these kinds of issues when users copy and paste images from Gmail since those images are authorised only to them.

I guess at the time of editing, they can see the image, but others that visit the page later can't. In your case, I assume you're using some kind of seperate WhatsApp client?

brendon avatar Aug 28 '24 22:08 brendon

Hi Brendon, Sorry for delay to reply...

I dont know why.

When I past on Github comment for exemplo, It works. When I past on Trix, it breaks...

victorlcampos avatar Sep 24 '24 10:09 victorlcampos

Ex: this image I copy from whatsapp web chat, and paste here

image

If I paste on trix:

image

Same ctrl+c / ctrl+v

victorlcampos avatar Sep 24 '24 10:09 victorlcampos

If it's any help, this is what I see. I assume you see an actual image and not what looks like a 404 placeholder:

image

brendon avatar Sep 24 '24 19:09 brendon

Yes, On github the paste works like expected, the same image on Trix

image

victorlcampos avatar Sep 25 '24 19:09 victorlcampos

An interesting one. It looks like trix is interpreting the image as a blob even though it appears to be a valid web address. Perhaps it actually is a blob?

https://stackoverflow.com/a/30881444/129798

Trix can handle blobs I think? Or maybe it can't, and that's the problem... I don't work for this project, but perhaps one of the maintainers knows?

brendon avatar Sep 25 '24 19:09 brendon

I update the trix and its works now Sorry

victorlcampos avatar Feb 25 '25 16:02 victorlcampos