Open the file in the root directory of UEditor directly, find "Set default fonts and font sizes", and modify the default fonts and font sizes:
..... //Set the default font and font size//font-family cannot be changed casually, fillchar will have parsing problems under safari //Comment out the original default font and font size//'body{margin:8px;font-family:sans-serif;font-size:16px;}' + //Modify it to the default font and font size you need'body{margin:8px;font-family:Microsoft Yahei,Microsoft YaHei;font-size:14px;}' + ....
If the font inside the option does not have what you want, you can do it in the root directory Find "Font settings”, uncomment add your new font or delete unwanted fonts:
.... //Font settings Label is left blank to support automatic switching of multilingual languages. If configured, the configuration value shall prevail.,'fontfamily':[ { label:'',name:'yahei',val:'Microsoft Yahei,Microsoft YaHei'}, { label:'',name:'songti',val:'Song style,SimSun'}, { label:'',name:'kaiti',val:'Kaiyi,Kaiyi_GB2312, SimKai'}, { label:'',name:'heiti',val:'Bold body, SimHei'}, { label:'',name:'lishu',val:'Lishu, SimLi'}, { label:'',name:'andaleMono',val:'andale mono'}, { label:'',name:'arial',val:'arial, helvetica,sans-serif'}, { label:'',name:'arialBlack',val:'arial black,avant garde'}, { label:'',name:'comicSansMs',val:'comic sans ms'}, { label:'',name:'impact',val:'impact,chicago'}, { label:'',name:'timesNewRoman',val:'times new roman'} ] ....
After the modification is completed, open the editor and set the font for you by default!
Please perform Js compression override for the compressed version.