博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
百度编辑器 Ueditor 下拉处增加字体
阅读量:6612 次
发布时间:2019-06-24

本文共 2404 字,大约阅读时间需要 8 分钟。

左百度,添加到同右钉邮那么多:

                                             

 

1、\ueditor\lang\zh-cn\zh-cn.js  文件中找到:fontfamily节点,替换如下:

'fontfamily':{        'songti':'宋体',        'heiti':'黑体',        'kaiti':'楷体',        'lishu':'隶书',        'yahei':'微软雅黑',        'arial':'arial',        'arialBlack':'arial black',        'bookAntiqua':'Book Antiqua',        'Calibri':'Calibri',        'comicSansMs':'comic sans ms',        'Courier New':'Courier New',        'Garamond':'Garamond',        'Georgia':'Georgia',        'Helvetica':'Helvetica',        'impact':'impact,chicago',        'Narrow':'Narrow',        'Sans Serif':'Sans Serif',        'Serif':'Serif',        'Symbol':'Symbol',        'Tahoma':'Tahoma',        'timesNewRoman':'times new roman',        'Trebuchet MS':'Trebuchet MS',        'Verdana':'Verdana',        'andaleMono':'andale mono'    },

 

2、ueditor\editor.config.js   文件中

,'fontfamily':[            { label:'',name:'songti',val:'宋体,SimSun'},            { label:'',name:'heiti',val:'黑体, SimHei'},            { label:'',name:'kaiti',val:'楷体,楷体_GB2312, SimKai'},            { label:'',name:'lishu',val:'隶书, SimLi'},            { label:'',name:'yahei',val:'微软雅黑,Microsoft YaHei'},            { label:'',name:'arial',val:'arial, helvetica,sans-serif'},            { label:'',name:'arialBlack',val:'arial black,avant garde'},//Arial Black            { label:'',name:'bookAntiqua',val:'Book Antiqua'},//            { label:'',name:'Calibri',val:'Calibri'},//Calibri            { label:'',name:'comicSansMs',val:'comic sans ms'},            { label:'',name:'Courier New',val:'Courier New'},//Courier New            { label:'',name:'Garamond',val:'Garamond'},//Garamond            { label:'',name:'Georgia',val:'Georgia'},//Georgia            { label:'',name:'Helvetica',val:'Helvetica'},//Helvetica            { label:'',name:'impact',val:'impact,chicago'},            { label:'',name:'Narrow',val:'Narrow'},//Narrow            { label:'',name:'Sans Serif',val:'Sans Serif'},//Sans Serif            { label:'',name:'Serif',val:'Serif'},//Serif            { label:'',name:'Symbol',val:'Symbol'},//Symbol            { label:'',name:'Tahoma',val:'Tahoma'},//Tahoma            { label:'',name:'timesNewRoman',val:'times new roman'},//Times New Roman            { label:'',name:'Trebuchet MS',val:'Trebuchet MS'},//Trebuchet MS            { label:'',name:'Verdana',val:'Verdana'},//Verdana            { label:'',name:'andaleMono',val:'andale mono'}        ]

 

转载地址:http://kuaso.baihongyu.com/

你可能感兴趣的文章
IAR 配置
查看>>
for / forEach / for in /for of 的区别及优势
查看>>
【论文学习】A Study of Equivalent and Stubborn Mutation Operators using Human Analysis of Equivalence...
查看>>
如何将自己写的verilog模块封装成IP核
查看>>
python3 urllib.request 网络请求操作
查看>>
Entity Framework with MySQL 学习笔记一(乐观并发)
查看>>
关于js中的date处理
查看>>
德识才学-判断人的四个方面
查看>>
5.10 数据库视图
查看>>
牛客面经
查看>>
Zookeeper使用--命令行
查看>>
Java之CountDownLatch使用
查看>>
转 Spring Security 简介
查看>>
CSS Hack解决浏览器IE部分属性兼容性问题
查看>>
第11次作业
查看>>
java.util.ConcurrentModificationException异常
查看>>
[转载] 七龙珠第一部——第023话 强敌出现了
查看>>
[解决方法] php大form用post方式传递数据过多被截取的问题
查看>>
语音转文字小工具开发Python
查看>>
bzoj3786 星际探索 splay dfs序
查看>>