Adding newline after [/align]
authorAlexander Ebert <ebert@woltlab.com>
Thu, 29 Jan 2015 09:22:18 +0000 (10:22 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 29 Jan 2015 09:22:18 +0000 (10:22 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 617e20e115b5298c33d4fcb69a84271e93680f83..cfe22109595278cb9305cabf04a8b1c43e285532 100644 (file)
@@ -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