font family check

master
Mark MacKay 2021-02-25 14:59:54 -06:00
parent c20ee84220
commit a87309c080
1 changed files with 2 additions and 2 deletions

View File

@ -255,8 +255,8 @@ MD.Panel = function(){
} }
}); });
if(el_name == 'text') { if(el_name === 'text') {
var font_family = elem.getAttribute("font-family"); var font_family = elem.getAttribute("font-family") || "serif";
var cleanFontFamily = font_family.split(",")[0].replace(/'/g, ""); var cleanFontFamily = font_family.split(",")[0].replace(/'/g, "");
var select = document.getElementById("font_family_dropdown"); var select = document.getElementById("font_family_dropdown");
$('#text_panel').css("display", "inline"); $('#text_panel').css("display", "inline");