diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 5b847f9b7..811c9a1f7 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -4858,6 +4858,14 @@ function Ace2Inner(){ $(document).on("click", handleIEOuterClick); } if (browser.msie) $(root).on("paste", handleIEPaste); + + // Don't paste on middle click of links + $(root).on("paste", function(e){ + if(e.target.a){ + e.preventDefault(); + } + }) + // CompositionEvent is not implemented below IE version 8 if ( !(browser.msie && browser.version < 9) && document.documentElement) {