TinyMCE Views in IE8 and 7: change deselect event only for old IE, props gcorne, fixes #27546

Built from https://develop.svn.wordpress.org/trunk@28063


git-svn-id: http://core.svn.wordpress.org/trunk@27895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2014-04-09 15:29:17 +00:00
parent cc694bac21
commit a3c725f5b4
3 changed files with 2 additions and 2 deletions

View File

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

File diff suppressed because one or more lines are too long