From bf8e1083de84bfceda1b9802b1a085ec83d4d894 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 10 Nov 2015 19:32:01 +0000 Subject: [PATCH] TinyMCE: prevent resize handles in newer IE when inserting a wpView. Fixes #29400. git-svn-id: https://develop.svn.wordpress.org/trunk@35602 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wpview/plugin.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js index 9db30087e9..61f34bc4b4 100644 --- a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js @@ -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