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

WordPress Trac noreply at wordpress.org
Thu Mar 13 23:09:07 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):

 In [changeset:"27528"]:
 {{{
 #!CommitTicketReference repository="" revision="27528"
 Add MCE Views for audio and video. Please clear your browser cache so that
 you get the latest TinyMCE stylesheet.

 * Move TinyMCE shortcode handling from `wpgallery` plugin to `mce-view.js`
 * Force `preload="none"` when rendering media in the editor to ensure fast
 loading (I realize this sounds illogical)
 * Move audio and video tag builder logic in `media-template.php` into PHP
 funcs that can be reused by any code passing `data.model` to an Underscore
 template
 * Pause all players when moving between editor tabs and when moving from
 the editor to editing in the media modal.
 * Rename `wp.media.audio|video.shortcode()` to the more appropriate
 `wp.media.audio|video.update()` that now returns a `wp.shortcode` object
 instead of a string.
 * Add necessary MediaElement css files to `$mce_css`
 * In `wp.mce.View.render()`, support multiple instances of the same
 shortcode
 * When rendering `wp.mce.View`s, fire a ready event that passes the
 current MCE View root element as context

 See #27389.
 }}}

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


More information about the wp-trac mailing list