[wp-trac] [WordPress Trac] #40427: Expose a JavaScript API to extend the Media Manager

WordPress Trac noreply at wordpress.org
Mon May 8 22:15:40 UTC 2017


#40427: Expose a JavaScript API to extend the Media Manager
---------------------------+------------------------------
 Reporter:  jonathanbardo  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Media          |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  javascript
---------------------------+------------------------------

Comment (by timmydcrawford):

 One pain point I think is worth bringing up from the Media Widgets project
 was the inability to write qunit tests for any of the functionality we
 were building around the Media Manager.  Since the Media Manager is a
 pretty key piece to the flow in the Media Widgets, we had attempted to
 simulate the flow of selecting an image via the Media Modal and asserting
 model attributes in the widget and previews were rendered as expected.

 Seems if a new API was built to interface with the Media Manager, we could
 have likely structured our code in such a way that we wouldn't have to
 write tests that deal with the media modal interactions.  Additionally a
 new API itself would ideally be written with its own test coverage.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40427#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list