From 0deacc4ad535b7adea816401faf7e37aea3887f5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 20 Jun 2015 16:28:21 +0200 Subject: [PATCH] Fixed handling of newlines in with lists --- .../install/files/js/3rdParty/redactor/plugins/wbbcode.js | 4 +++- 1 file changed, 3 insertions(+), 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 7a8239c53f..2741e23ed0 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -1226,7 +1226,9 @@ RedactorPlugins.wbbcode = function() { // fix newlines in tables represented with

...

instead of
data = data.replace(/([\s\S]+?)<\/td>/g, function(match, content) { - return '' + content.replace(/

/g, '').replace(/<\/p>/g, '
').replace(/
$/, '') + ''; + content = content.replace(/(<[uo]l)/g, '$1'); + + return '' + content.replace(/

<\/p>/g, '
').replace(/

/g, '').replace(/<\/p>/g, '
').replace(/
$/, '') + ''; }); // insert list items -- 2.20.1