Ticket #27971: 27971.patch
File 27971.patch, 973 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/js/mce-view.js
417 417 this.shortcode = options.shortcode; 418 418 _.bindAll( this, 'setPlayer', 'pausePlayers' ); 419 419 $( this ).on( 'ready', this.setPlayer ); 420 $( 'body' ).on( 'click', '.wp-switch-editor', this.pausePlayers ); 420 $( this ).on( 'ready', function( event, editor ) { 421 editor.on( 'hide', this.pausePlayers ); 422 } ); 421 423 $( document ).on( 'media:edit', this.pausePlayers ); 422 424 }, 423 425 … … 558 560 this.attachments = []; 559 561 this.shortcode = options.shortcode; 560 562 561 $( 'body' ).on( 'click', '.wp-switch-editor', this.pausePlayers ); 563 $( this ).on( 'ready', function( event, editor ) { 564 editor.on( 'hide', this.pausePlayers ); 565 } ); 562 566 $( document ).on( 'media:edit', this.pausePlayers ); 563 567 564 568 this.fetch();