From c90a2a5d3b423f0be00d69f92bb50d7737788e37 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Wed, 9 Apr 2014 15:28:17 +0000 Subject: [PATCH] TinyMCE Views in IE8 and 7: change deselect event only for old IE, props gcorne, fixes #27546 git-svn-id: https://develop.svn.wordpress.org/trunk@28063 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/tinymce/plugins/wpview/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js index 337b3d2b2e..812341cf6b 100644 --- a/src/wp-includes/js/tinymce/plugins/wpview/plugin.js +++ b/src/wp-includes/js/tinymce/plugins/wpview/plugin.js @@ -293,7 +293,7 @@ tinymce.PluginManager.add( 'wpview', function( editor ) { // Fix issue with deselecting a view in IE8. Without this hack, clicking content above the view wouldn't actually deselect it // and the caret wouldn't be placed at the mouse location - if( tinymce.Env.ie <= 8 ) { + if ( tinymce.Env.ie && tinymce.Env.ie <= 8 ) { deselectEventType = 'mouseup'; } else { deselectEventType = 'mousedown';