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

WordPress Trac noreply at wordpress.org
Wed Apr 9 17:34:45 UTC 2014


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

Comment (by wonderboymusic):

 [attachment:27389.combined.3.diff 27389.combined.3.diff] cleans up all
 player instances in a view when the view refreshes and the first new
 player is being parsed.

 Since we are blowing away the inner DOM for MCE views when transition away
 from Visual or Undo-ing, this is necessary to clean up MEjs cruft from
 previously created players. They all have to be done at once to prevent
 extras from leaking - say you go from Visual tab to Text, delete a
 shortcode, and then tab back to Visual, we don't want orphaned and unbound
 player instances.

 This is a joy to debug. Patch also removes the TinyMCE changes which are
 forthcoming from upstream.

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


More information about the wp-trac mailing list