'fontfamily':{
'songti': '宋體',
'SimSun': '仿宋',
'FangSong_GB2312': '仿宋_GB2312',
'kaiti':'楷體',
'heiti':'黑體',
'lishu':'隸書',
'yahei':'微軟雅黑',
'andaleMono':'andale mono',
'arial': 'arial',
'arialBlack':'arial black',
'comicSansMs':'comic sans ms',
'impact':'impact',
'timesNewRoman':'times new roman'
},
2、找到文件ueditor\ueditor.config.js文件(網(wǎng)上也看到一說是ueditor\editor_config.js文件,可能版本問題),找到其中被注釋掉的fontfamily節(jié)點(diǎn),去掉該節(jié)點(diǎn)的注釋,添加“仿宋”和“仿宋GB2312”
//fontfamily
//字體設(shè)置 label留空支持多語言自動(dòng)切換,若配置,則以配置值為準(zhǔn)
,'fontfamily':[
{ label: '', name: 'songti', val: '宋體,SimSun' },
{ label: '', name: 'SimSun', val: '仿宋,SimSun' },
{ label:'',name:'FangSong_GB2312',val:'仿宋_GB2312 ,FangSong_GB2312'},
{ label:'',name:'kaiti',val:'楷體,楷體_GB2312, SimKai'},
{ label:'',name:'yahei',val:'微軟雅黑,Microsoft YaHei'},
{ label:'',name:'heiti',val:'黑體, SimHei'},
{ label:'',name:'lishu',val:'隸書, 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'}
]
//fontsize
//字號(hào)
//,'fontsize':[10, 11, 12, 14, 16, 18, 20, 24, 36]