#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@… |
Description
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 10 years ago by
Cc: | gregoire.daussin@… added |
---|
comment:2 Changed 10 years ago by
comment:3 Changed 10 years ago by
Keywords: | chrome paste image removed |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
We are working currently on support for files pasting and drag and drop - see #11437.
comment:4 Changed 10 years ago by
Tho, it's neither file pasting, nor drap/drop related, just simple copy/pasta of an image.
comment:5 Changed 10 years ago by
Anyway, I see you wanna make it a whole major update, so I guess I gonna hotfix it myself, thanks anyway (:
comment:6 Changed 10 years ago by
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 9 years ago by
Hi, I tried copy/pasting image in Chrome with the 4.5.2, and it still does not work.
comment:8 Changed 9 years ago by
Yes, but have you used builder to include upload features? They are not available by default. Please see http://sdk.ckeditor.com/samples/fileupload.html.
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.