百度编辑器 Ueditor 增加字体

1、\ueditor\lang\zh-cn\zh-cn.js  文件中找到:fontfamily节点,添加:'fangsong': '仿宋',

 

    'fontfamily':{

        'songti':'宋体',

        'kaiti':'楷体',

        'heiti':'黑体',

        'lishu':'隶书',

        'yahei':'微软雅黑',

        'andaleMono':'andale mono',

        'arial': 'arial',

        'arialBlack':'arial black',

        'comicSansMs':'comic sans ms',

        'impact':'impact',

        'timesNewRoman':'times new roman',

        'verdana':'Verdana'

    },

 


2、ueditor\editor_config.js   文件中找到:取消掉注释,添加:{ label: '', name: 'fangsong', val: '仿宋,SimSun' },

 

 

        ,'fontfamily':[

            { label:'',name:'songti',val:'宋体,SimSun'},

            { 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'},

            { label:'',name:'verdana',val:'Verdana'}

          ]

posted @ 2014-10-09 17:19  Say丶No  阅读(3157)  评论(0编辑  收藏  举报