CKeditor加入中文字体 转

转自http://13.xxx.blog.163.com/

CKeditor确实非常好,但是编辑时,字体选择里面没有中文字体。可以按如下方法添加:

 

打开CKeditor目录里的config.js,在

CKEDITOR.editorConfig = function( config )
{

};
里添加如下代码:

config.font_names='宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;微软雅黑/微软雅黑;'+ config.font_names;

以后使用的时候就可以用中文字体了。

posted @ 2010-12-07 19:55  ndxsdhy  阅读(8719)  评论(1编辑  收藏  举报