Dear friends,
I follow this site http://www.yiiframework.com/wiki/352/how-to-setup-ckeditor/ to add ckeditor to yii framework but it still not work.is there any video tutorial to instruct step by step for this issue ?
thankyou very much
Dear friends,
I follow this site http://www.yiiframework.com/wiki/352/how-to-setup-ckeditor/ to add ckeditor to yii framework but it still not work.is there any video tutorial to instruct step by step for this issue ?
thankyou very much
Dear friends,
for add ckeditor to yii framework, these steps I have done:
first: download ckeditor standard 4.2 and TheCKEditor
second : I put ckeditor folder to project besite protected folder and copy TheCKEditor to extends
in TheCKEditor there are 2 files theCKEditorWidget.php, one in TheCKEditor/theCKEditorWidget.php and one in TheCKEditor/views/theCKEditorWidget.php
thirst: I copy the theCKEditorWidget.php which is TheCKEditor/theCKEditorWidget.php to ckeditor.
next I put this code in the view:
<?php $this->widget('application.extensions.TheCKEditor.theCKEditorWidget',array(
'model'=>$model, # Data-Model (form model)
'attribute'=>'vn_shortDescription', # Attribute in the Data-Model
'height'=>'400px',
'width'=>'100%',
'toolbarSet'=>'Basic', # EXISTING(!) Toolbar (see: ckeditor.js)
'ckeditor'=>Yii::app()->basePath.'/../ckeditor/TheCKEditorWidget.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
) ); ?>
but I receive error :
Alias "application.extensions.TheCKEditor.theCKEditorWidget" is invalid. Make sure it points to an existing PHP file and the file is readable.
I do not know what step is wrong, hope you help me to fix this issue.
thankyou very much
finally I see the simple way to add CKeditor follow this site
http://www.yiiframework.com/wiki/432/ckeditor-integration-includes-steps-for-file-uploads-step-by-step/