From d9750c8b3a4ee631ed66699bd555cc710f8b750a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 12 Apr 2015 00:00:46 +0200 Subject: [PATCH] Removing zero-width whitespace in code edit window --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index c65f1e0325..efd19aa803 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -2270,7 +2270,7 @@ RedactorPlugins.wbbcode = function() { var $code = ''; $list.children('li').each(function(index, listItem) { - $code += $(listItem).text() + "\n"; + $code += $(listItem).text().replace(/^\u200b$/, '') + "\n"; }); $codeBox.val($code.replace(/^\n+/, '').replace(/\n+$/, '')); -- 2.20.1