ace drop event

This commit is contained in:
John McLear 2015-12-05 18:50:51 +00:00
parent e2a0e3cd7f
commit fa492dc926
1 changed files with 16 additions and 0 deletions

View File

@ -5005,6 +5005,22 @@ function Ace2Inner(){
});
})
$(root).on("drop", function(e){
top.console.log("DROP");
if(e.target.a || e.target.localName === "a"){
e.preventDefault();
}
// Call paste hook
hooks.callAll('aceDrop', {
editorInfo: editorInfo,
rep: rep,
documentAttributeManager: documentAttributeManager
});
});
// CompositionEvent is not implemented below IE version 8
if ( !(browser.msie && parseInt(browser.version <= 9)) && document.documentElement)
{