Fixed parsing of font families
authorAlexander Ebert <ebert@woltlab.com>
Mon, 27 Oct 2014 12:10:05 +0000 (13:10 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 27 Oct 2014 12:10:05 +0000 (13:10 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 13c028485037b283d7bb1d872be97e7f30dbb909..cfabc5517996106debf8cf7901bed0d4ff8b6dd7 100644 (file)
@@ -382,8 +382,8 @@ RedactorPlugins.wbbcode = function() {
                                                                        }
                                                                }
                                                        }
-                                                       else if ($style.match(/font-family: ?(.*?);?/)) {
-                                                               $start = '[font=' + RegExp.$1.replace(/'/g, '') + ']';
+                                                       else if ($style.match(/font-family: ?([^;]+);?/)) {
+                                                               $start = "[font='" + RegExp.$1.replace(/'/g, '') + "']";
                                                                $end = '[/font]';
                                                        }
                                                        else {