PasteFromWord Can't Copy/Paste images + other content from Word (most browsers)
MicahBrown opened this issue · comments
Type of report
Bug
Provide detailed reproduction steps (if any)
- Take a word document with at least some text and an image (or just a doc with 2 images)
- Then select the whole document (Ctrl+A)
- Then paste in the editor (Ctrl+P)
It's currently broken on the plugin demo page - The images show broken like so:
I noticed this behavior on Chrome/Brave, Firefox. But weirdly, it works fine on Safari.
Expected result
The images should copy fine, like they do in Safari:
Actual result
Images copy broken like the example in step 4 above.
Other details
- Browser: Brave, Chrome, Firefox, Safari
- OS: MacOS 12.6
- CKEditor version: 4
- Installed CKEditor plugins: pastefromword
Sidenote: It looks as if the images also don't copy over in the appropriate order as you can see from my gifs.
Hi @MicahBrown
Could you provide a .docx
file with images that are not possible to paste? Currently, I am not able to reproduce this issue, and copying and pasting two images from Word to the editor works well.
@KarolDawidziuk Sure, this doc doesn't work for me: example.docx
Also, we initially got this report on this issue from some end-users. So it doesn't seem isolated to my environment.
And one more thing, copying one image at a time still does work. It just seems to be when you copy an image with text or other content.
It does not work because the image format is not supported. These images are in image/emf
format. In addition, if you check the browser's console you'll see an appropriate error regarding this.
Since a feature request for EMF file support already exists. I am closing this issue.
@KarolDawidziuk Ah, makes sense. I appreciate the insight!