Fixed broken quotes in font family style
authorAlexander Ebert <ebert@woltlab.com>
Mon, 25 Jul 2016 15:02:39 +0000 (17:02 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 25 Jul 2016 15:02:39 +0000 (17:02 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 67d2b87bfadc722101953648044822fd9c63c31d..202b4cbb0fb5005a7af775fd2e3116cd9dd5dd5d 100644 (file)
@@ -559,7 +559,7 @@ RedactorPlugins.wbbcode = function() {
                                else {
                                        if ($value.match(/^<span/)) {
                                                if ($value.match(/^<span(?:.*?)style="([^"]+)"(?:[^>]*?)>/)) {
-                                                       var $style = RegExp.$1;
+                                                       var $style = RegExp.$1.replace(/&quot;/g, '"');
                                                        var $start;
                                                        var $end;
                                                        
@@ -601,7 +601,7 @@ RedactorPlugins.wbbcode = function() {
                                                                        }
                                                                }
                                                        }
-                                                       else if ($style.match(/font-family: ?([^;]+);?/)) {
+                                                       else if ($style.replace(/"/g, '').match(/font-family: ?([^;]+);?/)) {
                                                                $start = "[font='" + RegExp.$1.replace(/'/g, '') + "']";
                                                                $end = "[/font='" + RegExp.$1.replace(/'/g, '') + "']";