Ticket #39337: 39337.4.patch
File 39337.4.patch, 711 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/js/mce-view.js
428 428 */ 429 429 replaceMarkers: function() { 430 430 this.getMarkers( function( editor, node ) { 431 var selected = node === editor.selection.getNode(); 431 432 var $viewNode; 432 433 433 434 if ( ! this.loader && $( node ).text() !== this.text ) { … … 440 441 ); 441 442 442 443 editor.$( node ).replaceWith( $viewNode ); 444 445 if ( selected ) { 446 editor.selection.select( $viewNode[0] ); 447 448 setTimeout( function() { 449 editor.selection.collapse(); 450 } ); 451 } 443 452 } ); 444 453 }, 445 454