return to homepage
13080553467
QQ customer service

wechat customer service

wechat public account

  • customer serviceQQ:1193846053    wechat: suyoufuwu    contact number: 13080553467     

how to add new fonts to yiyou article editor

suyou network (10 years of experience), serves tens of thousands of companies, and has fixed transparent quotations. domain name registration, hosting /one-stop service for server and website source code. a physical company, a professional team, worth choosing! website building business: corporate website construction, company official website production, foreign trade website construction, website imitation, website copying, imitation site, foreign trade website construction, single-page customer service wechat【 suyoufuwu】


  1. 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',

    how to add new fonts to yiyou article editor (figure 1 )
  2. open public/plugins/Ueditor/ueditor.config.js file, about 185 lines, delete comments

    how to add new fonts to yiyou article editor (figure 2 )

     

     
  3. and add the following code:

     { label:'',name:'SimSun',val: ' imitation song, SimSun' },

     { label:'',name:'FangSong_GB2312',val:' imitation song _GB2312 ,FangSong_GB2312'},
    how to add new fonts to yiyou article editor (figure 3 )

     
  4. after saving, force refresh the browser ( Ctrl+F5), you will find imitation of song and imitation of song GB2312 already added.
    how to add new fonts to yiyou article editor (figure 4 )





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:

national branch station

national branch station