Ticket #31239: 31239.patch
File 31239.patch, 646 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/js/mce-view.js
560 560 frame.state('gallery-edit').on( 'update', function( selection ) { 561 561 var shortcode = gallery.shortcode( selection ).string(), force; 562 562 $( node ).attr( 'data-wpview-text', window.encodeURIComponent( shortcode ) ); 563 force = ( data !== shortcode ); 564 wp.mce.views.refreshView( self, shortcode, force ); 563 wp.mce.views.refreshView( self, shortcode, true ); 565 564 }); 566 565 567 566 frame.on( 'close', function() {