I’m using latest Yii 1.1.7 and ckeditor-integration. I setup ckeditor as per the directions on the extension page =>
<?php
$base = Yii::app()->request->baseUrl;
$this->widget('ext.ckeditor.CKEditorWidget', array(
"model"=>$event,
"attribute"=>'description',
'config'=>array(
'width'=>'600px',
'filebrowserBrowseUrl' => $base.'/filemanager/index.html',
),
));
?>
But when the editor loads, the attribute doesn’t come up.
I patched extensions/ckeditor/views/CKEditorView.php to make it work =>
+++ CKEditorView.php 2011-05-04 20:25:44.000000000 -0400
@@ -42,5 +42,9 @@
}
}
+
+// pull model data into area
+$defaultValue = $model->$attribute;
+
$oCKeditor->editor(get_class($model).'['.$attribute.']',$defaultValue);
?>
Did I miss something?
Thanks in advance,
Daniel