From 1243514d77bd80582335f9ce569900ea180bc560 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 25 Jul 2016 15:48:46 +0200 Subject: [PATCH] Remove invisible whitespace pasted by Firefox --- .../install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js | 3 +++ 1 file changed, 3 insertions(+) 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(); -- 2.20.1