[wp-trac] [WordPress Trac] #19845: Drag and drop files into the Visual Editor

WordPress Trac noreply at wordpress.org
Sun Oct 21 18:12:53 UTC 2012


#19845: Drag and drop files into the Visual Editor
-----------------------------+-----------------------------
 Reporter:  kovshenin        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Media            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+-----------------------------

Comment (by azaozz):

 Been thinking/testing different approaches for the last couple of weeks.
 This is a nice-to-have, "flashy" feature but when using it for a while
 there are few things that aren't very good:

 - Works only in Firefox, WebKit and IE10+. That excludes about 30% of the
 users. It is possible to make it work for single file in older IE and
 Opera but is too hacky: need to overlay the editor iframe with an <input
 type=file /> that is in a separate form on dragenter, then submit that
 form on change. Of course there will be no progress bar then.

 - It is somewhat awkward to use. For the users to be able to drag files
 from the desktop to the browser window to the editor, they would need to
 resize the browser window to look for the files under it or to open
 another OS window containing the files that will overlay the browser. In
 both cases the users would "loose" their previous working area.

  When using the standard uploader that's not as bad since the only purpose
 there is uploading. When typing a post/using the editor this doesn't feel
 right.

 - When a file is dragged to the editor iframe there is an indication (the
 caret is shown) of where the file would be dropped. However the caret
 position is actually not changed, so after dropping the file it is
 inserted at the previous caret location. Tried to find a workaround  but
 seems impossible.

 In that terms I'm 50/50 on whether this should be in core or implemented
 by a plugin.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19845#comment:25>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list