CKeditor 扩展中如何增加中文字体? [ 新手入门 ]
大家好,我现成已经集成ckeditor,能上传和发表内容,但就是ckeditor中没有中文字体,现想加入中文字体,请问如何做。
以前用ckeditor时,直接在config.js中加入:
config.font_names='宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;微软雅黑/微软雅黑;'+config.font_names;
,但现在这样做不灵了,界面一点反映也没有,
php界面是这样的:
<?php
$this->widget('application.extensions.editor.CKkceditor',array(
"model"=>$model, # Data-Model
"attribute"=>'content', # Attribute in the Data-Model
"height"=>'400px',
"width"=>'100%',
"filespath"=>Yii::app()->basePath."/../upf/",
"filesurl"=>Yii::app()->baseUrl."/upf/",
"config"=>array(
'toolbar' => array(
array('Save','Preview','-','Templates'),
array('Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'),
array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
array('/'),
array('Bold','Italic','Underline','Strike','-','Subscript','Superscript'),
array('NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'),
array('BidiLtr', 'BidiRtl'),
array('Link','Unlink','Anchor'),
array('Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Iframe'),
array('/'),
array('Styles','Format','Font','FontSize'),
array('TextColor','BGColor'),
array('Maximize', 'ShowBlocks'),
),
),
));
?>
<?php echo $form->error($model,'content'); ?>
共 2 条回复
jbas
注册时间:2012-09-30
最后登录:1970-01-01
在线时长:0小时0分
最后登录:1970-01-01
在线时长:0小时0分
- 粉丝0
- 金钱60
- 威望0
- 积分60