Currently, an attempt to paste a local image results in a broken image on the website, because the file is local. It would be nice if the interface automatically offered to upload the file. The file cannot be arbitrarily uploaded, as the location needs to be chosen.

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.

Desired result:
1. CKEditor opens dialog: This is a local image. Would you like to upload it to the website so that others can see it?
OK Cancel
2. If user clicks OK, open the image dialog box.

It needs to be clear which image this is being done for, as if there is a paste of a whole document, there may be multiple images.

Comments

Charles Belov created an issue.

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.
It works not exactly as you've described but very similar.

Charles Belov’s picture

The site I am responsible for has too many modules installed already, so I am being very conservative about adding additional modules. That said, thank you for your contribution to the Drupal ecosystem.

The current issue is still an issue if your module is not installed. The goal is to have CKEditor do no harm.

eugene.ilyin’s picture

I understand your position but I don't think that this new module can be dangerous. In any case, if will decide to install this module and you'll get some troubles I'll be ready for help.