Fixed argument list
authorAlexander Ebert <ebert@woltlab.com>
Thu, 18 Dec 2014 01:19:16 +0000 (02:19 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 18 Dec 2014 01:19:16 +0000 (02:19 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 59061926687dce639d7ca263acabe371728f0580..c9e5c31c935ef2bad163a04136e4120ccd252097 100644 (file)
@@ -688,7 +688,7 @@ RedactorPlugins.wbbcode = function() {
                                
                        // [img]
                        data = data.replace(/\[img\]([^"]+?)\[\/img\]/gi,'<img src="$1" />');
-                       data = data.replace(/\[img='?([^"]*?)'?,'?(left|right)'?\]\[\/img\]/gi, function(match, src, float, width) {
+                       data = data.replace(/\[img='?([^"]*?)'?,'?(left|right)'?\]\[\/img\]/gi, function(match, src, float) {
                                var $style = 'float: ' + float + ';';
                                if (float === 'left') {
                                        $style += 'margin: 0 15px 7px 0';