[svn r21991] FS#2867 - The online editor: Moving some seetings about the quick-upload tabs from myconfig.js to myconfig.php.

skala
Ivan Tcholakov 16 years ago
parent b70eb1b062
commit 6acf665ec6
  1. 95
      main/inc/lib/fckeditor/myconfig.js
  2. 25
      main/inc/lib/fckeditor/myconfig.php

@ -28,7 +28,7 @@
*
* Please, do not modify the file fckconfig.js in order to make upgrades easy.
* Just create your desired settings in this file, myconfig.js.
* Also, some configuration options may be created/modified within the file myconfig.php.
* Also, configuration options (with higher priority) may be created/modified within the file myconfig.php.
*/
FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
@ -86,8 +86,8 @@ FCKConfig.GoogleMaps_Key = 'ABQIAAAAlXu5Pw6DFAUgqM2wQn01gxT2yXp_ZAY8_ufC3CFXhHIE
* File Manager.
*/
// Window size of file manager:
// for all acceptable types of files;
// Window size of the file manager:
// for any type of files;
FCKConfig.LinkBrowserWindowWidth = 782 ;
FCKConfig.LinkBrowserWindowHeight = 490 ;
// for images;
@ -114,75 +114,26 @@ FCKConfig.IMUploadPath = '' ;
* Quick-upload tabs.
*/
// For all acceptable types of resources (files).
// true/false to enable/disable the quick-upload tab.
FCKConfig.LinkUpload = true ;
// To be moved in the php-integration file.
FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$" ; // empty for all
FCKConfig.LinkUploadDeniedExtensions = "" ;
// For images.
// true/false to enable/disable the quick-upload tab.
FCKConfig.ImageUpload = true ;
// To be moved in the php-integration file.
FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ;
FCKConfig.ImageUploadDeniedExtensions = "" ;
// For flash objects.
// true/false to enable/disable the quick-upload tab.
FCKConfig.FlashUpload = true ;
// To be moved in the php-integration file.
FCKConfig.FlashUploadAllowedExtensions = ".(swf)$" ;
FCKConfig.FlashUploadDeniedExtensions = "" ;
// For audio files.
// true/false to enable/disable the quick-upload tab.
FCKConfig.MP3Upload = true ;
// To be moved in the php-integration file.
FCKConfig.MP3UploadAllowedExtensions = ".(mp3)$" ;
FCKConfig.MP3UploadDeniedExtensions = "" ;
// For video files.
// true/false to enable/disable the quick-upload tab.
FCKConfig.VideoUpload = true ;
// To be moved in the php-integration file.
FCKConfig.VideoUploadAllowedExtensions = ".(mpg|mpeg|mp4|avi|wmv|mov|asf)$" ;
FCKConfig.VideoUploadDeniedExtensions = "" ;
// For video (flv) files.
// true/false to enable/disable the quick-upload tab.
FCKConfig.MediaUpload = true ;
// To be moved in the php-integration file.
FCKConfig.MediaUploadAllowedExtensions = ".(flv)$" ;
FCKConfig.MediaUploadDeniedExtensions = "" ;
/*
* Alternative settings for the advanced file manager mode.
*/
if (FCKConfig.PageConfig.AdvancedFileManager)
{
// Hiding quick-upload tabs, so users not to get confused.
FCKConfig.LinkUpload = false ;
FCKConfig.ImageUpload = false ;
FCKConfig.MP3Upload = false ;
FCKConfig.FlashUpload = false ;
FCKConfig.VideoUpload = false ;
FCKConfig.MediaUpload = false ;
}
// Lists of allowed and denied name extensions of files to be uploaded.
// for all acceptable types of files;
FCKConfig.LinkUploadAllowedExtensions = '.(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip)$' ; // empty for all
FCKConfig.LinkUploadDeniedExtensions = '' ;
// for images;
FCKConfig.ImageUploadAllowedExtensions = '.(jpg|gif|jpeg|png|bmp)$' ;
FCKConfig.ImageUploadDeniedExtensions = '' ;
// for flash objects;
FCKConfig.FlashUploadAllowedExtensions = '.(swf)$' ;
FCKConfig.FlashUploadDeniedExtensions = '' ;
// for audio files;
FCKConfig.MP3UploadAllowedExtensions = '.(mp3)$' ;
FCKConfig.MP3UploadDeniedExtensions = '' ;
// for video files;
FCKConfig.VideoUploadAllowedExtensions = '.(mpg|mpeg|mp4|avi|wmv|mov|asf)$' ;
FCKConfig.VideoUploadDeniedExtensions = '' ;
// for video (flv) files.
FCKConfig.MediaUploadAllowedExtensions = '.(flv|mp4)$' ;
FCKConfig.MediaUploadDeniedExtensions = '' ;
// Note: These lists get combined with the platform's white and black lists.
/*

@ -120,7 +120,7 @@ $config['LoadPlugin'][] = 'imgmap';
*/
// Set true/false to enable/disable the file manager for different resource types:
$config['LinkBrowser'] = true; // for all acceptable types of files;
$config['LinkBrowser'] = true; // for any type of files;
$config['ImageBrowser'] = true; // for images;
$config['FlashBrowser'] = true ; // for flash objects;
$config['MP3Browser'] = true ; // for audio files;
@ -133,6 +133,29 @@ $config['MediaBrowser'] = true ; // for video (flv) files.
$config['OpenSimpleFileManagerInANewWindow'] = false;
/*
* Quick-upload tabs.
*/
// Set true/false to enable/disable the quick-upload tabs for different resource types:
$config['LinkUpload'] = true; // for any type of files;
$config['ImageUpload'] = true; // for images;
$config['FlashUpload'] = true; // for flash objects;
$config['MP3Upload'] = true; // for audio files;
$config['VideoUpload'] = true; // for video files;
$config['MediaUpload'] = true; // for video (flv) files.
// For advanced file manager mode: Hiding quick-upload tabs, so users not to get confused.
if ((api_get_setting('advanced_filemanager') == 'true')) {
$config['LinkUpload'] = false;
$config['ImageUpload'] = false;
$config['MP3Upload'] = false;
$config['FlashUpload'] = false;
$config['VideoUpload'] = false;
$config['MediaUpload'] = false;
}
/*
* Miscellaneous settings.
*/

Loading…
Cancel
Save