Fixed variable reference
authorAlexander Ebert <ebert@woltlab.com>
Tue, 16 Dec 2014 23:24:46 +0000 (00:24 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 16 Dec 2014 23:24:46 +0000 (00:24 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index fc91365875f27b54be24301f954f4f40a33dcf2e..33411316cf7002005f8d6b728ec37b21c2a42b8b 100644 (file)
@@ -692,7 +692,7 @@ RedactorPlugins.wbbcode = function() {
                        data = data.replace(/\[img='?([^"]*?)'?\]\[\/img\]/gi,'<img src="$1" />');
                        
                        // [size]
-                       data = data.replace(/\[size=(\d+)\]([\s\S]*?)\[\/size\]/gi, (function(match, a, content) {
+                       data = data.replace(/\[size=(\d+)\]([\s\S]*?)\[\/size\]/gi, (function(match, size, content) {
                                content = $.trim(content);
                                if (!content.length) {
                                        content = this.opts.invisibleSpace;