私はYiiフレームワークを初めて利用しました。 CMS管理ページのFCKエディタが必要です。私はFCKeditorをルートフォルダとyii拡張フォルダの拡張子にダウンロードして解凍しました。私は私の見解で次のコードを追加しましたYiiでFCKエディタを設定するには?
<?php $this->widget('application.extensions.fckeditor.FCKEditorWidget',array(
"model"=>$model, # Data-Model
"attribute"=>'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',),
# http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
# Additional Parameter (Can't configure a Toolbar dynamicly)
)); ?>
これらはすべて正常に動作しています。 が表示されますが、エディタは個別に表示されます。私はコンテンツのテキストエリアの代わりにエディタが必要です。
私はFCKエディタを見るたびに、それは別のことを言うと思う... – goat