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

The exact same image keeps being pasted after copying an image from the editor (Firefox) #4820

Open
Baztoune opened this issue Sep 19, 2024 · 0 comments

Comments

@Baztoune
Copy link

Expected behavior.

Copying then pasting an image in the editor inserts it, no matter what was copied before.

Actual behavior.

If I copy an image A from the editor, then copy another image B from somewhere else (or do a screenshot), then the same image A is always pasted afterwards instead of the new image B.

Steps to reproduce the problem.

See CodeSandbox for reproduction

  • Add an image in the froala editor (IMAGE A)
  • Select the image and Copy it (Cmd+C)
  • Copy an image from your finder, or take a screenshot (IMAGE B)
  • Paste it in the editor
  • Expected : IMAGE B should be pasted
  • ❌ Observed : IMAGE A is pasted !

Observation : only way to "reset" it is to copy some text

Editor version.

4.2.2 with image plugin
NOT reproduced if image plugin is not imported

OS.

MacOS Sonoma 14.6.1 (latest)

Browser.

Firefox 130 (latest)
NOT reproduced in Chrome.

Recording.
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

1 participant