Opened 13 years ago

Last modified 11 years ago

#8021 confirmed Bug

Problem handling images

Reported by: thecaiogama Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Firefox Cc:



On firefox 4 I can copy an image from my computer and past it directly on to CKEditor (ctrl + c and ctrl + v), but, when I try to do this on IE 8 or google chrome nothing happens.

Does anyone know why?

Thank You!

Change History (10)

comment:1 Changed 13 years ago by Jakub Ś

Keywords: Firefox added; copy and paste IE google chrome removed
Status: newconfirmed
Version: 3.63.0

CKEditor is an online editor and such actions should not be allowed in any browser. Image should be uploaded to the server first. Only then CKEditor will be able to apply valid URL if such image is used on HTML page.

Just realized that we have perfect solution for it - CKFinder :) - which can be integrated with CKEditor easily.

I think the real question here is Why CKEditor allows in Firefox browsers to paste images using CRTL+C CRTL+V? This may create an illusion for some users that image is actually uploaded to the server in background which is not true.

It has been possible to paste images in FF4 an FF3.6 from CKEditor 3.0.

comment:2 Changed 13 years ago by Frederico Caldeira Knabben

Note that Firefox uses a "data:" value for the image source, which is totally valid as an online resource (embedded into the contents).

comment:3 Changed 13 years ago by Jakub Ś

You are right - since this only works with CKEditor and FF4 I thought that it would be easier to disable it there. Now I'm thinking that it was not very wise. If users want to embed images in HTML page than CKEditor should allow them to do it.

After note form @fredck I change my opinion on this. I think the problem is that images are not pasted using CRTL+V and are not wrapped in data: although this URI scheme is supported by Opera, Webkit, FF3.6, IE9 and IE8(URI length up to 32KB).

IE6 and IE7 don't support it so there will be a little browser incompatibility. But hey "soon" those browsers will be dead, so who cares ;)

comment:4 Changed 13 years ago by Jakub Ś

Similar issue was described in #8022

comment:5 Changed 13 years ago by Frederico Caldeira Knabben

Please note that I'm not stating that "data:" is the right or wrong thing to have here. I'm just adding further information regarding the FF behavior.

Ideally we should have the editor uploading the image and make it work for all browsers. I doubt we would be able to do so, because of security restrictions on clipboard data, but we should try to bring the best user experience on all browsers.

The final way to handle it is still to be defined.

comment:6 Changed 12 years ago by Jakub Ś

#8571 was marked as duplicate.

comment:7 Changed 11 years ago by Jakub Ś

#10255 was marked as duplicate.

comment:8 Changed 11 years ago by Alfonso Martínez de Lizarrondo

I created a plugin to implement this functionality long ago:

The latest version is not open source, but it includes support for Chrome as well as drag & drop and it has been adjusted to be compatible with CKEditor 4.1

comment:9 Changed 11 years ago by Jakub Ś

#8208 was marked as duplicate.

comment:10 Changed 11 years ago by Jakub Ś

#10346 similar issue was marked 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