From: Alexander Ebert Date: Sat, 13 Dec 2014 00:54:14 +0000 (+0100) Subject: Visualizing [tt] causes an unreliable behavior X-Git-Tag: 2.1.0_Beta_1~50 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=29d9d19acabd01aeeedb30e11a8fd1b14e045c97;p=GitHub%2FWoltLab%2FWCF.git Visualizing [tt] causes an unreliable behavior --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 1022034ec0..1d54d90cfa 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -1001,7 +1001,7 @@ RedactorPlugins.wbbcode = function() { var $value = $cachedCode.value; // [tt] - $value = $value.replace(/^\[tt\](.*)\[\/tt\]/, '$1'); + //$value = $value.replace(/^\[tt\](.*)\[\/tt\]/, '$1'); // preserve leading whitespaces in [code] tags $value = $value.replace(/^\[code[^\]]*\][\S\s]*\[\/code\]$/, '
$&
');