Make WordPress Core

Ticket #19845: 19845.3.diff

File 19845.3.diff, 701 bytes (added by kovshenin, 11 years ago)
  • src/wp-includes/js/tinymce/plugins/wordpress/plugin.js

     
    443443                editor.dom.bind( editor.getBody(), 'dragstart', function() {
    444444                        _hideButtons();
    445445                });
     446
     447                editor.dom.bind( editor.getWin(), 'dragover', function(e) {
     448                        if ( typeof window.jQuery !== 'undefined' ) {
     449                                // Propagate the event to its container for the parent window to catch.
     450                                jQuery( editor.getContainer() ).trigger(e);
     451                        }
     452                });
    446453        });
    447454
    448455        editor.on( 'BeforeExecCommand', function() {