Changeset 39903
- Timestamp:
- 01/15/2017 02:40:30 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/mce-view.js
r39282 r39903 429 429 replaceMarkers: function() { 430 430 this.getMarkers( function( editor, node ) { 431 var selected = node === editor.selection.getNode(); 431 432 var $viewNode; 432 433 … … 441 442 442 443 editor.$( node ).replaceWith( $viewNode ); 444 445 if ( selected ) { 446 setTimeout( function() { 447 editor.selection.select( $viewNode[0] ); 448 editor.selection.collapse(); 449 } ); 450 } 443 451 } ); 444 452 },
Note: See TracChangeset
for help on using the changeset viewer.