From: Alexander Ebert Date: Mon, 25 Jul 2016 15:02:39 +0000 (+0200) Subject: Fixed broken quotes in font family style X-Git-Tag: 3.0.0_Beta_1~117^2~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c4a8eaf82ca265dc5629b034aebc02c7fe2123f;p=GitHub%2FWoltLab%2FWCF.git Fixed broken quotes in font family style --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 67d2b87bfa..202b4cbb0f 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -559,7 +559,7 @@ RedactorPlugins.wbbcode = function() { else { if ($value.match(/^]*?)>/)) { - var $style = RegExp.$1; + var $style = RegExp.$1.replace(/"/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, '') + "']";