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

Copy and Paste multiple images from word bypasses the image.beforeUpload event #4778

Open
chrisw-n opened this issue Apr 23, 2024 · 1 comment

Comments

@chrisw-n
Copy link

chrisw-n commented Apr 23, 2024

If you have a feature suggestion, please add it on the Feature List instead.

Expected behavior.

When multiple images are copied and pasted from word the image.beforeUpload event should be triggered

Actual behavior.

Images are pasted directly into the editor and included as blobs directly in the src

Steps to reproduce the problem.

Took this from the Froala copy from word example and added the image.beforeUpload override.
Simply create a word document with images and text and copy and paste it into the editor. In this case the image.beforeUpload event is bypassed
https://jsfiddle.net/cwalker/Ln6uqbfm/3/

Editor version.

"react-froala-wysiwyg": "^4.2.0",

OS.

Windows 10 latest

Browser.

Edge (Version 124.0.2478.51 (Official build) (64-bit)) / Chrome (Version 124.0.6367.61 (Official Build) (64-bit))

@chrisw-n chrisw-n changed the title Overriding insert image when pasting multiple images / text from word Copy and Paste multiple images from word bypasses the image.beforeUpload event Apr 25, 2024
@chrisw-n
Copy link
Author

Update I downgraded to "react-froala-wysiwyg": "4.1.4" and I have the events are executed correctly. Seems to be a bug introduced in 4.2.0

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