Fixed WYSIWYG issue
authorMarcel Werk <burntime@woltlab.com>
Wed, 19 Jun 2013 20:23:54 +0000 (22:23 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 19 Jun 2013 20:23:54 +0000 (22:23 +0200)
wcfsetup/install/files/js/3rdParty/ckeditor/plugins/wbbcode/plugin.js

index 987fc6a2a8e659c4fe4d19bddd5da7bd46b8077d..18222b5edff96c74dd146d33301f72463792e3f1 100644 (file)
                        
                // [img]
                data = data.replace(/\[img\]([^"]+?)\[\/img\]/gi,'<img src="$1" />');
-               data = data.replace(/\[img='?([^"]*?)'?,(left|right)\]\[\/img\]/gi,'<img src="$1" style="float: $2" />');
+               data = data.replace(/\[img='?([^"]*?)'?,'?(left|right)'?\]\[\/img\]/gi,'<img src="$1" style="float: $2" />');
                data = data.replace(/\[img='?([^"]*?)'?\]\[\/img\]/gi,'<img src="$1" />');
                
                // [quote]