From: Alexander Ebert Date: Thu, 29 Jan 2015 09:22:18 +0000 (+0100) Subject: Adding newline after [/align] X-Git-Tag: 2.1.0_Beta_4~38 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de5ec64b3241a558e4ec2ed78076bb74cd28d752;p=GitHub%2FWoltLab%2FWCF.git Adding newline after [/align] --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 617e20e115..cfe2210959 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -507,7 +507,7 @@ RedactorPlugins.wbbcode = function() { // [align] html = html.replace(/<(div|p) style="text-align: ?(left|center|right|justify);? ?">([\s\S]*?)\n/gi, function(match, tag, alignment, content) { - return '[align=' + alignment + ']' + $.trim(content) + '[/align]'; + return '[align=' + alignment + ']' + $.trim(content) + '[/align]\n'; }); // smileys