Add font in Baidu editor ueditor

Source: Internet
Author: User

1. In the \ ueditor \ Lang \ ZH-CN \ zh-cn.js file, find the: fontfamily node and add: 'hangzhou': 'song ',

'fontfamily ': {

'songti': 'body',

'kaiti': 'kaiti',

'heiti': 'simhei ',

'lishu': 'zhangshu ',

'yahei': '',

'andalemono': 'andale mono',

'arial': 'arial',

'arialblack': 'arial Black',

'comicsansms ': 'comic sans Ms',

'Impact ': 'Impact',

'timesnewroman ': 'times new Roman',

'verdana ': 'verdana'

},


2. In the ueditor \ editor_config.js file, find: Cancel comments and add: {label: '', name: 'fangsong', VAL: ', simsun '},

 

 

, 'Fontfamily ':[

{Label: '', name: 'songti', VAL: ', simsun '},

{Label: '', name: 'kaiti', VAL: 'entity, entity _ gb2312, simkai '},

{Label: '', name: 'yahei', VAL: ', Microsoft yahei '},

{Label: '', name: 'heiti', VAL: 'simhei, simhei '},

{Label: '', name: 'lishu ', VAL: 'example, 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 '},

{Label: '', name: 'verdana ', VAL: 'verdana '}

]

Add font in Baidu editor ueditor

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.