41 list($name, $id) = $this->resolveNameID();
45 $this->htmlOptions[
'id'] = $id;
48 if ($this->hasModel()) {
50 $html = $this->form->textArea($this->model, $this->attribute, $this->htmlOptions);
52 $html = CHtml::activeTextArea($this->model, $this->attribute, $this->htmlOptions);
55 $html = CHtml::textArea($name, $this->
value, $this->htmlOptions);
71 $options = !empty($this->editorOptions) ? CJavaScript::encode($this->editorOptions) :
'{}';
73 Yii::app()->clientScript->registerScript(
74 __CLASS__ .
'#' . $this->getId(),
75 "CKEDITOR.replace( '$id', $options);"