View Full Version : File Drag and Drop in an HTMLEditor

21 Jun 2011, 4:51 AM
hi guys,

do you know if it is possible to do a File drag and drop in an HTMLeditor?

I know how to make it work in any html elements and components except for an HTMLEditor component.

I'm talking about the similar file drag and drop file upload plugin "awesomeuploader"

but instead of dropping it in a grid i wanted to drop the file it in an HTMLEditor.

i noticed that the HTMLEditor is an Iframe one so when i tried to console.log the even't it doesn't give any drag drop events.


21 Jun 2011, 10:30 PM
looks like not possible i guess?

24 Jun 2011, 7:29 AM
Are you using the File API, an external tool, or some third option to do your html-element file uploads? I'm using File API and I haven't yet gotten it to work in extJS. I'm having trouble with timing the dom calls so that the dom elements exist already.

Have you found a way around that? Perhaps I can help with your problem if you give a bit more detail...

13 Jul 2011, 4:17 AM
yes i managed to make a workaround :) yes im using FILE Api too. i added a hack where in during mouseenter on the window im showing a floating div above the htmleditor area (iframe), then when people drop it there i can get the file values.