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

Fixes #32045.
Built from https://develop.svn.wordpress.org/trunk@32257


git-svn-id: http://core.svn.wordpress.org/trunk@32228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2015-04-21 21:32:26 +00:00
parent e8ee561a4f
commit bafd7b98f6
4 changed files with 3 additions and 5 deletions

View File

@ -361,9 +361,6 @@ tinymce.PluginManager.add( 'wpview', function( editor ) {
// Remove marker attributes
$( 'p[data-wpview-marker]', rootNode ).attr( 'data-wpview-marker', null );
// Reset the selected node if any
selected = null;
}
editor.on( 'PreProcess', function( event ) {
@ -374,6 +371,7 @@ tinymce.PluginManager.add( 'wpview', function( editor ) {
editor.on( 'hide', function() {
// Replace the view nodes with their text directly in the editor body.
wp.mce.views.unbind();
deselect();
resetViews( editor.getBody() );
});

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-RC3-32256';
$wp_version = '4.2-RC3-32257';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.