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

index 18222b5edff96c74dd146d33301f72463792e3f1..66d252fbdb6b0c601ec2d8220ca2af507e9ee8b8 100644 (file)
                
                // [url]
                data = data.replace(/\[url\]([^"]+?)\[\/url]/gi, '<a href="$1">$1</a>');
-               data = data.replace(/\[url\='?([^'"\]]+)'?](.+?)\[\/url]/gi, '<a href="$1">$2</a>');
+               data = data.replace(/\[url\='([^'"]+)'](.+?)\[\/url]/gi, '<a href="$1">$2</a>');
+               data = data.replace(/\[url\=([^'"\]]+)](.+?)\[\/url]/gi, '<a href="$1">$2</a>');
                
                // [email]
                data = data.replace(/\[email\]([^"]+?)\[\/email]/gi, '<a href="mailto:$1">$1</a>');