Ticket #28905: 28905.6.patch
File 28905.6.patch, 1.3 KB (added by , 10 years ago) |
---|
-
src/wp-includes/js/mce-view.js
132 132 frameBorder: '0', 133 133 allowTransparency: 'true', 134 134 scrolling: 'no', 135 'class': 'wpview-sandbox', 135 136 style: { 136 137 width: '100%', 137 138 display: 'block' … … 554 555 555 556 pausePlayers: function() { 556 557 this.getNodes( function( editor, node, content ) { 557 var p, win = $( 'iframe', content ).get(0).contentWindow; 558 var p, win, 559 iframe = $( 'iframe.wpview-sandbox', content ).get(0); 558 560 559 if ( win&& win.mejs ) {561 if ( iframe && ( win = iframe.contentWindow ) && win.mejs ) { 560 562 for ( p in win.mejs.players ) { 561 563 win.mejs.players[p].pause(); 562 564 } … … 566 568 567 569 unsetPlayers: function() { 568 570 this.getNodes( function( editor, node, content ) { 569 var p, win = $( 'iframe', content ).get(0).contentWindow; 571 var p, win, 572 iframe = $( 'iframe.wpview-sandbox', content ).get(0); 570 573 571 if ( win&& win.mejs ) {574 if ( iframe && ( win = iframe.contentWindow ) && win.mejs ) { 572 575 for ( p in win.mejs.players ) { 573 576 win.mejs.players[p].remove(); 574 577 }