Opened 10 years ago

Closed 10 years ago

#12399 closed Bug (wontfix)

Paste from Word - Wrong MIME of images

Reported by: Piotr Maciejewski Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version:
Keywords: IE Cc:


Version: 4.4.4

Following scenario:

  • open Microsoft Word 2013
  • insert jpg picture into document
  • press Ctrl+A (select all)
  • press Ctrl+C (copy)
  • goto CKEditor
  • press Ctrl+V (paste)
  • right click on picture and select Picture Properties
  • on URL there is "data:image/png;base64,.." instead: "data:image/jpeg;base64,..."

The same is with copy-paste from Outlook email.

With png images is OK.

Change History (4)

comment:1 Changed 10 years ago by Jakub Ś

Status: newpending
Version: 4.4.4

I have tried pasting local image into word, then image from brwoser and finally inserting local image into word. Next I have tried pasting Word contents into editor but all produced image with path "file:".

The only case when "data:" is produced is when you drag and drop image in Firefox but this happens nativly and result is also different.

Please provide exact steps to reproduce this problem. Please also tell us if you are using any third-party plugins or this problem can be reproduced on our demo page or in one of predefined pre-sets (full, standard, basic)?

comment:2 Changed 10 years ago by Piotrek Koszuliński

BTW. It's not CKEditor converting image to a data URI so this bug should be reported to MSWord/Outlook guys.

comment:3 Changed 10 years ago by Piotr Maciejewski


Yes, I can reproduce it on your demo page.

One remark: I don't paste image to Word, but I use 'Insert' -> 'Picture' command.

I have never received "file:" after pasting from Word. Are you using Word 2013?

I download 'Full Package' from your download page. Nothing more.

I use IE 11 on Win8.1

Last edited 10 years ago by Piotr Maciejewski (previous) (diff)

comment:4 Changed 10 years ago by Jakub Ś

Keywords: IE added
Resolution: wontfix
Status: pendingclosed

I have in fact checked this in every browser except for IE.

Yes, this issue can be reproduced in IE11 but this is not CKEditor fault. Either Outlook or IE is changing mime type. I have checked this issue in native contenteditable element and got same result.

<img width="605" height="454" src="data:image/png;base64,

In this case CKEditor is not to blame. I'm closing this ticket as "won't fix".

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy