From 6c4a8eaf82ca265dc5629b034aebc02c7fe2123f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 25 Jul 2016 17:02:39 +0200 Subject: [PATCH] Fixed broken quotes in font family style --- .../install/files/js/3rdParty/redactor/plugins/wbbcode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, '') + "']"; -- 2.20.1