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';