I have a script like this in my view:
$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
'id'=>'leftContentEditor',
'options'=>array(
'title'=>$model->page_title,
'autoOpen'=>false,
'height'=>600,
'width'=>750,
'show'=>'fade',
'hide'=>'fade',
'buttons' => array
(
'Save'=>'js:function(){alert("ok")}',
'Cancel'=>'js:function(){close()}',
),
),
));
$this->widget('application.extensions.fckeditor.FCKEditorWidget',array(
"model"=>$model, # Data-Model
"attribute"=>'page_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)
) );
$this->endWidget();
The problem is, I can’t import the data from FCKEditor to my Controller. I’ve tried change the FCKEditor with textfield like this
echo $form->textField($model,'left_content',array('size'=>50,'maxlength'=>50));
. But still not working…