Changeset 28784
- Timestamp:
- 06/20/2014 04:29:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/mce-view.js
r28775 r28784 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 }, … … 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
Note: See TracChangeset
for help on using the changeset viewer.