Zi 字媒體
2017-07-25T20:27:27+00:00
kindeditor編輯器中自定義字體名稱和字體大小的方法
資料來源: http://www.iswweb.com/news/solutions/996.html
1.打開kindeditor目錄下面lang目錄下面的zh-cn.js,搜索fontname;
2.在下面的這段代碼中,添加自己需要定制的字體即可。格式為前面字體值,後面為顯示出來的字體名。
’fontname.fontName’ : {
’SimSun’ : ’宋体’,
’NSimSun’ : ’新宋体’,
’FangSong_GB2312’ : ’仿宋_GB2312’,
’KaiTi_GB2312’ : ’楷体_GB2312’,
’SimHei’ : ’黑体’,
’Microsoft YaHei’ : ’微软雅黑’,
’Century Gothic’ : ’Century Gothic’,
’Coudy Old Style’ : ’Coudy Old Style’,
’Bank Gothic LT BT’ : ’Bank Gothic LT BT’,
’Arial’ : ’Arial’,
’Arial Black’ : ’Arial Black’,
’Times New Roman’ : ’Times New Roman’,
’Courier New’ : ’Courier New’,
’Tahoma’ : ’Tahoma’,
’Verdana’ : ’Verdana’
},
寫了
5860316篇文章,獲得
23313次喜歡