An attempt to paste a local image results in a broken image on the website.

Environment: CKEditor library 4.5.3, CKEditor module 7.x-3.16, IMCE module 7.x-1.9

Steps:
1. Have a Word document with an image in it.
2. Be logged into Drupal website as an editor.
3. Add content -> basic page
4. Select the image in Word
5. Copy
6. Click in the edit area on the website
7. Paste

Actual results, Chrome: Pastes image tag with source on local disk
Actual results, IE9: Pastes image tag with image encoded as base64.

Expected results: Paste as above, but give warning that local images need to be uploaded to the server via the Image dialog.

8. Save and publish page
9. Visit page

Actual results: Image is broken

Comments

Charles Belov created an issue. See original summary.

Charles Belov’s picture

Issue summary: View changes
eugene.ilyin’s picture

I've got the same problem on my project.

After investigation I've found that we should not only have special plugin for CKEditor to handle images from Word but also the functionality to save file into the Drupal. I don't think that we should put code to save file into the ckeditor module. And I've made new separate module for this functionality - Image from Word.

It's already tested on my project and works perfect. You can try it easily.