Fixed markup for aligned text
authorAlexander Ebert <ebert@woltlab.com>
Sun, 22 Mar 2015 23:49:22 +0000 (00:49 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 22 Mar 2015 23:49:22 +0000 (00:49 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 5b95f046e546a41e6d52d704c7016a7484fa3833..af343425d99a49db01ec66f3ed4dfc5b2abbbd9f 100644 (file)
@@ -933,7 +933,7 @@ RedactorPlugins.wbbcode = function() {
                        
                        // [align]
                        data = data.replace(/\[align=(left|right|center|justify)\]([\s\S]*?)\[\/align\]\n?/gi, (function(match, alignment, content) {
-                               return this.wbbcode._expandFormatting(content, '<div style="text-align: ' + alignment + '">', '</div>');
+                               return this.wbbcode._expandFormatting(content, '<p style="text-align: ' + alignment + '">', '</p>');
                        }).bind(this));
                        
                        // search for [*] not preceeded by [list by searching for the first occurence of [list and then check the left