Simple Yii CKEditor widget.
CKEditor - WYSIWYG editor for everyone.
Widget generate CHtml::activeTextArea with same properties.
Tested with CKEditor 4+ version.
Copy this widget to Extensions folder.
Download CKEditor from http://ckeditor.com/download
Paste CKEditor's files to extension assets folder.
First, import the widget class file
Yii::import('ext.yii-ckeditor.CKEditorWidget');
Next, call the widget:
$this->widget('CKEditorWidget', array(
'model' => $model,
'attribute' => 'field',
// editor options http://docs.ckeditor.com/#!/api/CKEDITOR.config
'config' => array(
'language' => 'ru',
),
));