mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-08 03:02:03 +01:00
FF middle click fix
This commit is contained in:
parent
2ca0214661
commit
14fab9f441
1 changed files with 4 additions and 1 deletions
|
@ -4955,7 +4955,10 @@ function Ace2Inner(){
|
||||||
|
|
||||||
// Don't paste on middle click of links
|
// Don't paste on middle click of links
|
||||||
$(root).on("paste", function(e){
|
$(root).on("paste", function(e){
|
||||||
if(e.target.a){
|
// TODO: this breaks pasting strings into URLS when using
|
||||||
|
// Control C and Control V -- the Event is never available
|
||||||
|
// here.. :(
|
||||||
|
if(e.target.a || e.target.localName === "a"){
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue