[wp-trac] [WordPress Trac] #29733: Unable to insert image using drag-and-drop on custom wp_editor

WordPress Trac noreply at wordpress.org
Tue Sep 23 13:16:38 UTC 2014


#29733: Unable to insert image using drag-and-drop on custom wp_editor
--------------------------+-----------------------------
 Reporter:  aduth         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  javascript    |
--------------------------+-----------------------------
 '''Steps to reproduce:'''

 1) Create a page with an instance of wp_editor using a non-standard ID
 (i.e. anything other than "content")
 2) When viewing the page, drag and drop an image into editor (on fresh
 page reload, not having opened media library prior to dragging)
 3) Click "Insert into post"

 '''Expected outcome:'''

 Uploaded image is inserted into post

 '''Actual outcome:'''

 Uploaded image is not inserted into post

 '''Cause:'''

 The "drop" event handler creates a new "workflow" instance if one does not
 already exist using a hard-coded "content" ID despite the custom ID being
 used.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29733>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list