Saturday, November 28, 2015

Yii How to Add and Upload an Image using editMe


$this->widget('ext.editMe.widgets.ExtEditMe', array(
  'model' => $model,
   'attribute' => 'content',
   'ckeConfig'=>array('enableTabKeyTools'=>true,'enterMode'=>2),
'filebrowserImageBrowseUrl'=>Yii::app()->baseUrl.'/kcfinder/browse.php?type=files',
'filebrowserImageUploadUrl'=>Yii::app()->baseUrl.'/kcfinder/upload.php?type=files',
'filebrowserBrowseUrl'=>Yii::app()->baseUrl.'/kcfinder/upload.php?type=files',
'filebrowserUploadUrl'=>Yii::app()->baseUrl.'/kcfinder/upload.php?type=files'

));


// Edit configure in kcfinder/conf/config.php
'disabled' => false,
    'uploadURL' => "../upload",


// 



 Dowbload kcfinder from http://kcfinder.sunhater.com/download


No comments:

Post a Comment