[wp-trac] [WordPress Trac] #19845: Drag and drop files into the Visual Editor
WordPress Trac
noreply at wordpress.org
Thu Mar 13 10:25:43 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 kovshenin):
I tested .5.diff and now I like it better than checking for files on high-
frequency events. Here are some notes:
* When starting a local drag in the editor and leaving while dragging,
EditorUploader gets the regular dragover and shows the dropzone. I think
we can simply add dragstart and dragend to the list of bubbled events and
have only EditorUploader deal with local vs. file.
* The dragend event is fired when dropping text, but not when dropping an
image. Removing localDrag on drop could be an easy fix for this.
* In Safari you can no longer drag text or other stuff around, this is a
regression from 3.8.1 and I don't think it's related no d&d.
Updated patch in [attachment:19845.9.diff].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/19845#comment:52>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list