WordPress.org

Make WordPress Core

Ticket #27546: 27546-03.patch

File 27546-03.patch, 705 bytes (added by gcorne, 8 years ago)
  • src/wp-includes/js/tinymce/plugins/wpview/plugin.js

    diff --git src/wp-includes/js/tinymce/plugins/wpview/plugin.js src/wp-includes/js/tinymce/plugins/wpview/plugin.js
    index 337b3d2..b2e3c62 100644
    tinymce.PluginManager.add( 'wpview', function( editor ) { 
    293293
    294294                                // Fix issue with deselecting a view in IE8. Without this hack, clicking content above the view wouldn't actually deselect it
    295295                                // and the caret wouldn't be placed at the mouse location
    296                                 if( tinymce.Env.ie <= 8 ) {
     296                                if( tinymce.Env.ie && tinymce.Env.ie <= 8 ) {
    297297                                        deselectEventType = 'mouseup';
    298298                                } else {
    299299                                        deselectEventType = 'mousedown';