Make WordPress Core

Changeset 27372


Ignore:
Timestamp:
03/03/2014 03:53:52 PM (10 years ago)
Author:
nacin
Message:

TinyMCE: Propagate the dragover event outside the editor so drag-and-drop uploads can catch it.

props kovshenin.
see #19845.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/tinymce/plugins/wordpress/plugin.js

    r27368 r27372  
    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
Note: See TracChangeset for help on using the changeset viewer.