Fixed issue w/ img bbcode size parameter
authorAlexander Ebert <ebert@woltlab.com>
Tue, 6 Jan 2015 22:54:04 +0000 (23:54 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 6 Jan 2015 22:54:04 +0000 (23:54 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index cd331611ffdd331442de1a9628924c0f9333b55d..677a77d115392e5b06dce4773efa1db6d676287f 100644 (file)
@@ -743,7 +743,7 @@ RedactorPlugins.wbbcode = function() {
                                return '<img src="' + src + '" style="' + $style + '" />';
                        });
                        data = data.replace(/\[img='?([^"]*?)'?,'?(left|right|none)'?,'?(\d+)'?\]\[\/img\]/gi, function(match, src, alignment, width) {
-                               var $style = 'float: ' + alignment + '; width: ' + width + 'px';
+                               var $style = 'float: ' + alignment + '; width: ' + width + 'px;';
                                if (alignment === 'left') {
                                        $style += 'margin: 0 15px 7px 0';
                                }