From 1af618a49adf052a4fa901051c364e31dd4e00ac Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 26 Apr 2015 17:04:26 +0200 Subject: [PATCH] Reverted some changes --- .../files/js/3rdParty/redactor/plugins/wbbcode.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 2d4263cc48..f87fd2eea2 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -958,20 +958,10 @@ RedactorPlugins.wbbcode = function() { } // [*] - var $hasListItems = false; data = data.replace(/\[\*\]([\s\S]*?)(?=\[\*\]|\[\/list\])/gi, function(match, content) { - $hasListItems = true; - return '
  • ' + $.trim(content) + '
  • '; }); - // fix expanded formatting for lists - if ($hasListItems) { - data = data.replace(/(

    )(\[list[^\]]*\])?

  • /g, '$2
  • $1'); - data = data.replace(/(

    )<\/li>

  • /g, '
  • $1'); - data = data.replace(/(<\/li>\[\/list\])<\/p>/g, '$1'); - } - // fix superflous newlines with nested lists data = data.replace(/\n*(\[list\]<\/li>)/g, '$1'); @@ -1421,7 +1411,6 @@ RedactorPlugins.wbbcode = function() { + ''; }).bind(this)); - //data = data.replace(new RegExp('(?:

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