Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#12625 closed Bug (duplicate)

Bug: Pasting image is not working properly in Chrome

Reported by: Azaret Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version:
Keywords: Cc: gregoire.daussin@…


Descriptive summary Pasting image is not working properly in Chrome.

Steps to reproduce 1- Copy an image from any source 2- Open ckeditor in Chrome 3- Paste by hitting ctrl+v

Browser and OS Chrome 38 & 39 (at least) Windows 7

Full report While pasting an image in Chrome, it looks like nothing is happening in CKEditor. I tested it on the demo page and on the nightly without success (tested as 2014-11-04 at 2pm).

When watching what's happening on the DOM/JS, I see that CKEditor paste some Unicode char instead of the image. I went through the javascript code, and I see that CKEditor use contenteditable to paste the clipboard, however Chrome does not support pasting of image for contenteditable, however it works nicely when using clipboardData object in javascript.

Change History (8)

comment:1 Changed 9 years ago by Azaret

Cc: gregoire.daussin@… added

comment:2 Changed 9 years ago by Azaret

Sorry for the wrong line return, not used to trac.

Also if it's a duplicate, my apologize, I tried to search if there was another ticket without success.

comment:3 Changed 9 years ago by Piotrek Koszuliński

Keywords: chrome paste image removed
Resolution: duplicate
Status: newclosed

We are working currently on support for files pasting and drag and drop - see #11437.

comment:4 Changed 9 years ago by Azaret

Tho, it's neither file pasting, not drap/drop related, just simple copy/pasta of an image.

Version 0, edited 9 years ago by Azaret (next)

comment:5 Changed 9 years ago by Azaret

Anyway, I see you wanna make it a whole major update, so I guess I gonna hotfix it myself, thanks anyway (:

comment:6 Changed 9 years ago by Piotrek Koszuliński

Believe me that this simple "copy/paste of an image" requires a whole new architecture if it's to be solved right. A simple solution may be 5LOC, but we should design and implement it in a generic and extensible way with facades hiding browsers inconsistencies. And we do that in #11437.

I understand that in some cases the 5LOC quickfix is enough, but that's a job for the community. The core team must be focused on creating a long term stable solutions.

comment:7 Changed 8 years ago by Azaret

Hi, I tried copy/pasting image in Chrome with the 4.5.2, and it still does not work.

comment:8 Changed 8 years ago by Jakub Ś

Yes, but have you used builder to include upload features? They are not available by default. Please see ​

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