[wp-trac] [WordPress Trac] #36916: Refactor EditAttachments frame to work outside Media Library admin page

WordPress Trac noreply at wordpress.org
Mon May 23 02:26:28 UTC 2016


#36916: Refactor EditAttachments frame to work outside Media Library admin page
----------------------------------------+-----------------------------
 Reporter:  Funkatronic                 |      Owner:
     Type:  feature request             |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Media                       |    Version:  4.5.2
 Severity:  normal                      |   Keywords:
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 The EditAttachments frame/modal is used on the Media Library page to
 display and edit meta data of attachments.  This modal could be useful for
 plugin/theme developers but a few things tightly couple it to the Media
 Library:

 1. The frame requires a router.  This is easily remedied by feeding it a
 dummy object with two functions it seems to need but I can see this easily
 refactored using event listeners

 2. When opened, the code in the modal deletes all mediaelement.js
 instances on a page.  Not a problem in the media library but if you want
 to use it on a page with video and audio elements (which I do) it deletes
 them all from the DOM

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


More information about the wp-trac mailing list