wpviews: whenever a view is updated or inserted, don't refresh ALL of the views.

Props avryl.
Fixes #28788.


git-svn-id: https://develop.svn.wordpress.org/trunk@29530 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2014-08-18 03:58:24 +00:00
parent 8691d31bdc
commit 36b5f034ab
2 changed files with 44 additions and 25 deletions

View File

@@ -205,10 +205,6 @@ tinymce.PluginManager.add( 'wpview', function( editor ) {
removeView( selected );
}
if ( ! event.initial ) {
wp.mce.views.unbind( editor );
}
node = editor.selection.getNode();
// When a url is pasted, only try to embed it when pasted in an empty paragrapgh.