Make WordPress Core

Ticket #32045: 32045.patch

File 32045.patch, 732 bytes (added by azaozz, 10 years ago)
  • src/wp-includes/js/tinymce/plugins/wpview/plugin.js

     
    361361
    362362                // Remove marker attributes
    363363                $( 'p[data-wpview-marker]', rootNode ).attr( 'data-wpview-marker', null );
    364 
    365                 // Reset the selected node if any
    366                 selected = null;
    367364        }
    368365
    369366        editor.on( 'PreProcess', function( event ) {
     
    374371        editor.on( 'hide', function() {
    375372                // Replace the view nodes with their text directly in the editor body.
    376373                wp.mce.views.unbind();
     374                deselect();
    377375                resetViews( editor.getBody() );
    378376        });
    379377