I have a really annoying problem. I've gone ahead and removed the plugins 'dragdrop,basket' to disable drag & drop support for image uploads, but it doesn't stop it in Firefox.
I have my own drag & drop handling on the page and users keep dragging it onto the CKEditor. I really need to disable it as it's confusing users.
EDIT: It appears to be Firefox that inserts inline base64 encoded data:/image/jpeg information as part of the message body, but CKEditor must certainly be handling it somehow. This doesn't work within a normal textarea, but you can see the behaviour in CKEditor. I'm still digging but can't find a way for CKEditor to ignore this action so far.
I've found this ticket on Mozilla, I'm not quite sure though if this is being entirely handled by Firefox - but if it is why doesn't the behavior work in a textarea?
https://bugzilla.mozilla.org/show_bug.cgi?id=729587
Thanks!
Thu, 05/24/2012 - 02:22
#1
Re: Disable drag&drop uploads in Firefox
Adding in some more information.... and a server side solution in C#.
A StackOverflow post also outlining the issue with no solution: http://stackoverflow.com/questions/6708747/firefox-allows-desktop-image-files-to-be-dragged-in-to-ckeditor
Here's my C# sample code that uses the free HTML Agility Pack to parse through the data:
Solution works really well, given there doesn't seem to be an easy way to disable CKEditors handling of the base64 encoded data. It would be much nicer to handle this client side as any dragged image gets posted along in the message causing a huge postback, especially on large images. If I have missed something and there is a way to disable this in CKEditor, please contribute to the post!
Re: Disable drag&drop uploads in Firefox
For me it's a very nice feature.
You just have to add the right code and you get automatic uploads as the user expects them to work. See this sample: http://www.youtube.com/watch?v=DVInjn51VYw