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:
parent
3e9c664a9b
commit
ae1538daed
@ -173,6 +173,10 @@ tinymce.PluginManager.add( 'wpview', function( editor ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( selected ) {
|
||||
removeView( selected );
|
||||
}
|
||||
|
||||
if ( ! event.load ) {
|
||||
node = editor.selection.getNode();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user