diff options
author | John McLear <john@mclear.co.uk> | 2015-12-05 18:50:51 +0000 |
---|---|---|
committer | John McLear <john@mclear.co.uk> | 2015-12-05 18:50:51 +0000 |
commit | fa492dc926141e785f1a4c8bc99ac6372100461f (patch) | |
tree | c060755f263c2bcc4a86f773309c9209b967a7aa /src | |
parent | e2a0e3cd7feaf9e651064e9caf7747da150de68f (diff) | |
download | etherpad-lite-fa492dc926141e785f1a4c8bc99ac6372100461f.zip |
ace drop event
Diffstat (limited to 'src')
-rw-r--r-- | src/static/js/ace2_inner.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 2fd7978f..369c92da 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -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) { |