Copy and Paste multiple images from word bypasses the image.beforeUpload event
Opened this issue · 1 comments
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))
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