Yii Framework Forum: Need Video Add Ckeditor To Yii Framework - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Need Video Add Ckeditor To Yii Framework Rate Topic: -----

#1 User is offline   sacpv 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 04-December 13

Posted 26 December 2013 - 11:11 PM

Dear friends,

I follow this site http://www.yiiframew...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
0

#2 User is offline   sacpv 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 04-December 13

Posted 27 December 2013 - 01:53 AM

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
0

#3 User is offline   sacpv 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 34
  • Joined: 04-December 13

Posted 27 December 2013 - 02:32 AM

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/

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users