From 29d9d19acabd01aeeedb30e11a8fd1b14e045c97 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 13 Dec 2014 01:54:14 +0100 Subject: [PATCH] Visualizing [tt] causes an unreliable behavior --- 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 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\]$/, '
$&
'); -- 2.20.1