jbas 2012-10-30 21:55:28 3175次浏览 2条回复 0 0 0

大家好,我现成已经集成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'); ?>
您需要登录后才可以回复。登录 | 立即注册