Opened 9 years ago

Last modified 9 years ago

#13595 confirmed Bug

Drag and drop image into editor does not work in IE11

Reported by: Jonathan Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Chrome, Firefox, and IE10 allow you drag and drop an image file into the editor with the uploadimage plugin. For some reason it does not work with IE11.

Change History (6)

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

Status: newpending
Version: 4.5.1

I've just checked on http://sdk.ckeditor.com/samples/fileupload.html that it works perfectly fine. Extensive testing of DnD was part 4.5.0's testing phase and we didn't see any problems as well.

Not sure what can be wrong here if it works for you on IE10 (very similar env to IE11). Can you create a sample on which it happens? And please double check everything because it's really odd.

comment:2 Changed 9 years ago by Jonathan

I played around a little bit more. It looks like it does work sometimes. It appears that it is dependent on the area of the editable area that the file is dropped onto (though it doesn't seem to be consistent). If I drag an image to the bottom middle area of an empty editor using the divarea plugin, it ignores it 50% of the time.

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

Then unfortunately this is related to problems that we had with implementation of this method: https://github.com/ckeditor/ckeditor-dev/blob/cb014ccae3723926d9087b5fb8d512f4be6f4140/plugins/clipboard/plugin.js#L1740-L1888

As you can see it's terribly complicated because IEs were terribly unreliable. IE11 is the worst here, because the only API that can be used in order to translate cords into a range was removed and nothing else was implemented.

We spent so much time on this code finding more and more cases which we cannot fix that I don't think anyone will want to touch it. I only hope that Edge will do better.

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

I only hope that Edge will do better.

Well... https://twitter.com/reinmarpl/status/626506230249451520

comment:5 Changed 9 years ago by Jakub Ś

Status: pendingconfirmed

We spent so much time on this code finding more and more cases which we cannot fix that I don't think anyone will want to touch it.

I'm confirming the issue anyway. Maybe solution will pop out eventually.

comment:6 Changed 9 years ago by Jonathan

Is it possible that we could fallback to just pasting the image to the end of the content in the editor in IE10+. I think it would be far better to at least paste it in then have it just disappear and look broken.

For what it's worth, gmail gets around the issue by placing all drag and dropped images to the end of the content.

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