[wp-trac] [WordPress Trac] #27389: MCE Views for Audio/Video

WordPress Trac noreply at wordpress.org
Thu Mar 13 19:58:00 UTC 2014


#27389: MCE Views for Audio/Video
----------------------------+-------------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.9
Component:  Media           |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  javascript
----------------------------+-------------------------

Comment (by wonderboymusic):

 This bent my brain in half: [attachment27389.2.diff 27389.2.diff]

 * Pauses all players when toggling between editor modes
 * Pauses all players when popping open the media modal
 * When "Update" is pressed: the MCE view's `data-wpview-text` attr is
 updated, the views are refreshed, and the specific type of media's
 `render` method is called to remove the player and re-add it
 * `wp.media.audio|video`'s `shortcode` method is now called `update`,
 which is more semantically representative.
 * Triggers a `ready` event when a `wp.mce.View` is constructed
 * Bind `ready` handlers for `wp.mce.audio|video.View` for when the page
 initially loads so we have a reference to the view's root element
 * Removed the event attributes that were present in a previous patch's
 Underscore templates

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


More information about the wp-trac mailing list