Yii ~ use CKEditor

到這裡下載ckeditor-integration
http://www.yiiframework.com/extension/ckeditor-integration/

解壓縮丟到extensions裡

然後下載ckeditor丟到root

http://ckeditor.com/download

像我就是丟到yii/xxxxx/底下


在View裡面使用ckeditor的sample code

$this -> widget('ext.ckeditor.CKEditorWidget', array("model" => new Event,
"attribute" => 'content',
"defaultValue" => $item['content'],
"config" => array("height" => "400px", "width" => "80%", "toolbar" => "Full")));

沒有留言: