mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-08 21:56:12 +02:00
FF middle click fix
This commit is contained in:
parent
2ca0214661
commit
14fab9f441
@ -4955,7 +4955,10 @@ function Ace2Inner(){
|
||||
|
||||
// Don't paste on middle click of links
|
||||
$(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();
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user