With this extension you can use the CKEditor (http://ckeditor.com/) within your Yii-Application.
see this code:
$this->widget('application.extensions.TheCKEditor.theCKEditorWidget',array( 'model'=>$pages, # Data-Model (form model) 'attribute'=>'content', # Attribute in the Data-Model 'height'=>'400px', 'width'=>'100%', 'toolbarSet'=>'Basic', # EXISTING(!) Toolbar (see: ckeditor.js) 'ckeditor'=>Yii::app()->basePath.'/../ckeditor/ckeditor.php', # Path to ckeditor.php 'ckBasePath'=>Yii::app()->baseUrl.'/ckeditor/', # Relative Path to the Editor (from Web-Root) 'css' => Yii::app()->baseUrl.'/css/index.css', # Additional Parameters ) );
more optional parameters:
'config' => array('toolbar'=>array( array( 'Source', '-', 'Bold', 'Italic', 'Underline', 'Strike' ), array( 'Image', 'Link', 'Unlink', 'Anchor' ), ),);
this extension is built upon "FCKeditor-integration" extension which is outdated now
Total 6 comments
Thanks, But if you want it to work on Linux, you should replace: application.extensions.TheCKEditor.theCKEditorWidget with application.extensions.TheCKEditor.TheCKEditorWidget
sorry I forget to put the download link here, since the project is on github it's best to get the latest version there. by the way the download file is most updated one so far. (i try to keep it update)
The download link is with Waldo?
EDIT: Sorry for being an a-hole man. Thanks for uploading.
Where is downloadeble extension? :)
Great, Thanks Ali ;-)
http://www.yiiframework.com/wiki/352/how-to-setup-ckeditor/
Leave a comment
Please login to leave your comment.