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
This commit is contained in:
Andrew Ozz 2015-11-10 19:32:01 +00:00
parent fec164e485
commit bf8e1083de

View 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