Ticket #31998: 31998.patch
File 31998.patch, 863 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/js/tinymce/plugins/wpview/plugin.js
182 182 return; 183 183 } 184 184 185 if ( selected ) { 186 removeView( selected ); 187 } 185 if ( ! event.load ) { 186 if ( selected ) { 187 removeView( selected ); 188 } 188 189 189 if ( ! event.load ) {190 190 node = editor.selection.getNode(); 191 191 192 192 if ( node && node !== editor.getBody() && /^\s*https?:\/\/\S+\s*$/i.test( event.content ) ) { … … 361 361 362 362 // Remove marker attributes 363 363 $( 'p[data-wpview-marker]', rootNode ).attr( 'data-wpview-marker', null ); 364 365 // Reset the selected node if any 366 selected = null; 364 367 } 365 368 366 369 editor.on( 'PreProcess', function( event ) {