ckeditor / ckeditor4

The best enterprise-grade WYSIWYG editor. Fully customizable with countless features and plugins.

Home Page:https://ckeditor.com/ckeditor-4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

  1. Take a word document with at least some text and an image (or just a doc with 2 images)
  2. Then select the whole document (Ctrl+A)
  3. Then paste in the editor (Ctrl+P)
    It's currently broken on the plugin demo page
  4. The images show broken like so:
    brave

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

commented

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.

commented

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.

commented

Since a feature request for EMF file support already exists. I am closing this issue.

@KarolDawidziuk Ah, makes sense. I appreciate the insight!