From 2cc0e761f7b29272e8299b082c7f74af78a20250 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 16 Apr 2015 20:32:18 +0200 Subject: [PATCH] Fixed linebreaks between two succeeding [tt]/[code] --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index f96eefdd87..b94530da41 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -1299,7 +1299,6 @@ RedactorPlugins.wbbcode = function() { for (var $i = $cachedCodes.length - 1; $i >= 0; $i--) { var $cachedCode = $cachedCodes[$i]; var $regex = new RegExp('@@' + $cachedCode.key + '@@', 'g'); - var $value = $cachedCode.value; // [tt] @@ -1412,7 +1411,7 @@ RedactorPlugins.wbbcode = function() { + ''; }).bind(this)); - data = data.replace(new RegExp('(?:

)?(@@' + $cachedCode.key + '@@)(?:<\/p>)?', 'g'), '$1'); + //data = data.replace(new RegExp('(?:

)?(@@' + $cachedCode.key + '@@)(?:<\/p>)?', 'g'), '$1'); data = data.replace($regex, $value); } } -- 2.20.1