import data within CJuiDialog

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…

what are you trying to accomplish ?

Let’s say I type some text in the FCKEditor, and then I want to save the text to my database. The problem is I cannot get the text I’ve typed in the FCKEditor. I’ve checked in my controller, when i try call $model->left_content , it’s return nothing. When I erased the CJuiDialog widget, it’s works(the value retrieved). Is there something wrong with my CJuiDialog?

The same thing happened when I replace FCKEditor with textfield.