WordPress.org

Make WordPress Core

Changeset 32257


Ignore:
Timestamp:
04/21/2015 09:31:26 PM (7 years ago)
Author:
azaozz
Message:

TinyMCE wpView: properly deselect views when hiding the editor. Do not remove selected on PreProcess.
Fixes #32045.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wpview/plugin.js

    r32229 r32257  
    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
     
    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    });
Note: See TracChangeset for help on using the changeset viewer.