Currently I am using this Imperavi Redactor widget with my Yii Install. https://github.com/yiiext/imperavi-redactor-widget. It currently works but then I noticed I can handle image uploading through the WYSIWYG so I looked on how to enable that which lead me to this:
<?php
$attribute = 'info';
$this->widget('ImperaviRedactorWidget', array(
// The textarea selector
'selector' => '.redactor',
// Options
'options'=>array(
'fileUpload'=>Yii::app()->createUrl('post/fileUpload',array(
'attr'=>$attribute
)),
'fileUploadErrorCallback'=>new CJavaScriptExpression(
'function(obj,json) { alert(json.error); }'
),
'imageUpload'=>Yii::app()->createUrl('post/imageUpload',array(
'attr'=>$attribute
)),
'imageGetJson'=>Yii::app()->createUrl('post/imageList',array(
'attr'=>$attribute
)),
'imageUploadErrorCallback'=>new CJavaScriptExpression(
'function(obj,json) { alert(json.error); }'
),
),
));
?>
but then I dug through redactor.js and noticed that they're S3 functions but currently not sure how to use them as I could not find documentation anywhere about it just standard image uploading. Has anyone ever used this? If so could you lead me in the right direction. Thanks.