Skip to content
Browse files

...

  • Loading branch information...
1 parent c10f41a commit 818ba2d31cb6ce30907fa718eee45f7928a4c765 @erikuus committed
Showing with 5 additions and 1 deletion.
  1. +1 −1 protected/extensions/actions/XHEditorUpload.php
  2. +4 −0 protected/views/site/extensions/wysiwyg.php
View
2 protected/extensions/actions/XHEditorUpload.php
@@ -56,7 +56,7 @@ class XHEditorUpload extends CAction
/**
* @var upload extension
*/
- public $upExt='txt,rar,zip,jpg,jpeg,gif,png,swf,wmv,avi,wma,mp3,mid';
+ public $upExt='pdf,txt,rar,zip,jpg,jpeg,gif,png,swf,wmv,avi,wma,mp3,mid';
/**
* @var return format after upload: 1- only the url, 2- parameter array
*/
View
4 protected/views/site/extensions/wysiwyg.php
@@ -18,6 +18,8 @@
'width'=>'740px',
'height'=>'400px',
'loadCSS'=>XHtml::cssUrl('editor.css'),
+ 'upLinkUrl'=>$this->createUrl('request/uploadFile'),
+ 'upLinkExt'=>'zip,rar,txt,pdf',
'upImgUrl'=>$this->createUrl('request/uploadFile'),
'upImgExt'=>'jpg,jpeg,gif,png',
),
@@ -38,6 +40,8 @@
'width'=>'740px',
'height'=>'400px',
'loadCSS'=>XHtml::cssUrl('editor.css'),
+ 'upLinkUrl'=>$this->createUrl('request/uploadFile'),// <?php echo Yii::t('ui','NB! Access restricted by IP');?>
+ 'upLinkExt'=>'zip,rar,txt,pdf',
'upImgUrl'=>$this->createUrl('request/uploadFile'), // <?php echo Yii::t('ui','NB! Access restricted by IP');?>
'upImgExt'=>'jpg,jpeg,gif,png',
),

0 comments on commit 818ba2d

Please sign in to comment.
Something went wrong with that request. Please try again.