how to add new fonts to yiyou article editor
to add imitation of song, imitation of song _GB2312 two fonts are used as examples.
beat public/plugins/Ueditor/lang/zh-cn/zh-cn.js , find' fontfamily’ the node is about 62 lines, and the following code is added:
'SimSun': ' imitation song',
'FangSong_GB2312': ' imitation song _GB2312',
open public/plugins/Ueditor/ueditor.config.js file, about 185 lines, delete comments
- and add the following code:
{ label:'',name:'SimSun',val: ' imitation song, SimSun' },
{ label:'',name:'FangSong_GB2312',val:' imitation song _GB2312 ,FangSong_GB2312'},
- after saving, force refresh the browser ( Ctrl+F5), you will find imitation of song and imitation of song GB2312 already added.
![](https://suyouweb.com/uploads/allimg/20230519/1-23051923443G41.jpg)
the above is the "how to add new fonts to the yiyou article editor" shared by suyou network with everyone. thank you very much for reading this article patiently. we will provide you with more information on reference, use or learning and communication. . we can also provide you with:enterprise website construction, website imitation, website copying, imitation site, foreign trade website construction, foreign trade website construction, company official website productionfor services, our company serves customers with the service concept of "integrity, professionalism, pragmatism and innovation". if you need cooperation, please scan the code to consult, and we will serve you sincerely.
TAG label: