织梦dede后台编辑器添加新字体的方法不管用啊
dede吧
全部回复
仅看楼主
level 3
Howeverdong 楼主

打开include/ckeditor/ckeditor.js,搜索i.font_names,找到字体列表。添加所需的中文字体,添加后为:
i.font_names='Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS,
cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia,
serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma,
Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS,
Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif;
宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;微软雅黑/微软雅黑';
需要特别注意的是:添加的字体,要写成诸如“宋体/宋体”的形式,而不是“宋体”。即“显示的字体名称/实际字体名称”的格式。
但是我改了之后还是没有出现新字体,怎么回事啊?
2013年02月02日 03点02分 1
level 3
Howeverdong 楼主
没有响应的呢......
2013年02月04日 02点02分 2
level 1
怎么样了
2015年06月16日 09点06分 4
level 1
我也这么做的,是真的不管用。
2017年09月22日 07点09分 5
level 1
刚刚试了一下,并没有出现中文字体,是我的操作手法不对还是百度给上的答案不够明确?哎。
2017年12月29日 06点12分 6
level 1
更新,生成你的网站,然后清空浏览器,再看。如果还没有,那就考虑是不是自己添加的时候,代码出错了。
2018年02月06日 07点02分 7
1