From: Alexander Ebert Date: Mon, 25 Jul 2016 13:48:46 +0000 (+0200) Subject: Remove invisible whitespace pasted by Firefox X-Git-Tag: 3.0.0_Beta_1~117^2~18 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1243514d77bd80582335f9ce569900ea180bc560;p=GitHub%2FWoltLab%2FWCF.git Remove invisible whitespace pasted by Firefox --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js index 334a71d30f..2e10f1d447 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js @@ -940,6 +940,9 @@ RedactorPlugins.wmonkeypatch = function() { // link.insert var $mpInsert = this.link.insert; this.link.insert = (function() { + // Firefox: remove any invisible characters present in the url + this.link.$inputUrl[0].value = this.link.$inputUrl[0].value.trim().replace(/\u200B/, ''); + $mpInsert.call(this); this.selection.get();