关于Yii Framework中使用FckEditor,求解~ [ 新手入门 ]
<?php 
$this->widget('application.extensions.fckeditor.FCKEditorWidget',array(
  "model"=>$info,                # Data-Model
  "attribute"=>'ainfo_content',         # Attribute in the Data-Model
  "height"=>'400px',
  "width"=>'100%',
  "toolbarSet"=>'Basic',          # EXISTING(!) Toolbar (see: fckeditor.js)
  "fckeditor"=>Yii::app()->basePath."/fckeditor/fckeditor.php",# Path to fckeditor.php
  "fckBasePath"=>Yii::app()->baseUrl."/fckeditor/",# Realtive Path to the Editor (from Web-Root)
  "config" => array("EditorAreaCSS"=>Yii::app()->baseUrl.'/css/index.css',),# Additional Parameter  (Can't configure a Toolbar dynamicly)
 ) );
?>
这是调用的,我的fckeditor目录就在protected下面 有没有错? 但是现在的情况是[attach]5[/attach] 怎么回事啊?求解~舰长快来啊
共 18 条回复
- 
 - 
 - 

<?php $this->widget('application.extensions.fckeditor.FCKEditorWidget',array( 'model'=>$model, 'attribute'=>'content', 'height'=>'300px', 'width'=>'90%', 'toolbarSet'=>'Basic', 'fckeditor'=>Yii::app()->basePath."/../fckeditor/fckeditor.php", 'fckBasePath'=>Yii::app()->baseUrl."/fckeditor/", ) ); ?> - 
 - 
 - 
lgw2008521 回复于 2011-04-02 09:32 举报使用编辑器,在保存或显示的时候应该怎样处理,因为显示内容是有html代码?
 - 
 - 
 - 
lgw2008521 回复于 2011-04-02 09:37 举报内容: 今天周六
从数据库读出的,正常不是应该只显示‘今天周六’,怎样把html代码部分格式化呀 - 
 - 
lgw2008521 回复于 2011-04-02 09:57 举报唉,初学不精,解决了
 - 
 - 
 - 
 - 
 - 
 - 
 - 
 
tz_com 山东
            注册时间:2011-03-01
最后登录:2025-06-13
在线时长:1小时12分
    最后登录:2025-06-13
在线时长:1小时12分
- 粉丝1
 - 金钱440
 - 威望0
 - 积分450