]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/tinymce/plugins/wpview/plugin.js
WordPress 4.4
[autoinstalls/wordpress.git] / wp-includes / js / tinymce / plugins / wpview / plugin.js
index 9db30087e9928b4181f5297fb45005840e224f8c..61f34bc4b444d5a9dcd15d2f76ace3f90e44b07c 100644 (file)
@@ -347,6 +347,15 @@ tinymce.PluginManager.add( 'wpview', function( editor ) {
                                attributeFilter: ['class']
                        } );
                }
+
+               if ( tinymce.Env.ie ) {
+                       // Prevent resize handles in newer IE
+                       editor.dom.bind( editor.getBody(), 'controlselect mscontrolselect', function( event ) {
+                               if ( getView( event.target ) ) {
+                                       event.preventDefault();
+                               }
+                       });
+               }
        });
 
        // Empty the wpview wrap and marker nodes