TinyMCE wpView: add back the removal of selected views on inserting new content. Was removed when reverting the first fix for embedding of pasted URLs.

Props mattheu. Fixes #31796.

git-svn-id: https://develop.svn.wordpress.org/trunk@31931 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-03-30 18:21:56 +00:00
parent 3e9c664a9b
commit ae1538daed
1 changed files with 4 additions and 0 deletions

View File

@ -173,6 +173,10 @@ tinymce.PluginManager.add( 'wpview', function( editor ) {
return;
}
if ( selected ) {
removeView( selected );
}
if ( ! event.load ) {
node = editor.selection.getNode();