From 2eff3cb208b8dda684d6a4cec18744bb3c226ad4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 16 Mar 2015 19:49:14 +0100 Subject: [PATCH] Improved handling of line breaks in tables --- .../install/files/js/3rdParty/redactor/plugins/wbbcode.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 7601edd752..23ea557727 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -1198,6 +1198,11 @@ 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(/
$/, '') + ''; + }); + // insert list items if ($listItems.length) { for (var $i = $listItems.length - 1; $i >= 0; $i--) { -- 2.20.1