Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken copy/past from Whatsapp #1180

Open
victorlcampos opened this issue Aug 20, 2024 · 6 comments
Open

Broken copy/past from Whatsapp #1180

victorlcampos opened this issue Aug 20, 2024 · 6 comments

Comments

@victorlcampos
Copy link

victorlcampos commented Aug 20, 2024

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)
@brendon
Copy link

brendon commented Aug 28, 2024

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?

@victorlcampos
Copy link
Author

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
Copy link
Author

victorlcampos commented Sep 24, 2024

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

image

If I paste on trix:

image

Same ctrl+c / ctrl+v

@brendon
Copy link

brendon commented Sep 24, 2024

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

@victorlcampos
Copy link
Author

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

image

@brendon
Copy link

brendon commented Sep 25, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants