[wp-trac] [WordPress Trac] #19845: Drag and drop files into the Visual Editor
WordPress Trac
noreply at wordpress.org
Wed Mar 12 01:49:32 UTC 2014
#19845: Drag and drop files into the Visual Editor
-------------------------------------+-------------------------
Reporter: kovshenin | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.9
Component: Media | Version:
Severity: normal | Resolution:
Keywords: needs-testing has-patch | Focuses: javascript
-------------------------------------+-------------------------
Comment (by azaozz):
19845.8.diff fixes it to work in Firefox by excluding `dragover` when
there is `'text/plain'` in `event.dataTransfer.types`. Also adds "close on
click" for the overlay and bypasses the `event.dataTransfer.types` check
when triggering from TinyMCE.
Still thinking that using `dragstart` and `dragend` is somewhat more
robust when checking for "local" dragging. They are designed not to fire
when dragging from the OS into the browser, and that's what we want to
detect.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19845#comment:50>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list