/ *
* Chamilo LMS
*
* Copyright ( c ) 2008 - 2010 Juan Carlos Raña
* Copyright ( c ) 2008 - 2010 Ivan Tcholakov
* Copyright ( c ) 2008 - 2009 Julio Montoya
* Copyright ( c ) 2008 - 2009 Dokeos SPRL
*
* For a full list of contributors , see "credits.txt" .
* The full license can be read in "license.txt" .
*
* This program is free software ; you can redistribute it and / or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation ; either version 2
* of the License , or ( at your option ) any later version .
*
* See the GNU General Public License for more details .
* /
/ *
* Custom editor configuration settings .
*
* Follow this link for more information :
* http : //docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
*
* 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 , 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">' ;
FCKConfig . SkinPath = FCKConfig . BasePath + 'skins/silver/' ;
FCKConfig . ProtectedSource . Add ( /<script[\s\S]*?\/script>/gi ) ; // To protect <script> tags.
FCKConfig . AutoDetectLanguage = false ;
FCKConfig . ContextMenu = [ 'Generic' , 'Link' , 'Anchor' , 'Image' , 'Flash' , 'Select' , 'Textarea' , 'Checkbox' , 'Radio' , 'TextField' , 'HiddenField' , 'ImageButton' , 'Button' , 'BulletedList' , 'NumberedList' , 'Table' , 'Form' ] ;
FCKConfig . TemplatesXmlPath = FCKConfig . EditorPath + 'fcktemplates.xml.php' ;
FCKConfig . DisableFFTableHandles = false ;
FCKConfig . SmileyWindowWidth = 450 ;
FCKConfig . SmileyWindowHeight = 250 ;
/ *
* Loading plugins integrated by the Chamilo team . To enable / disable them , see myconfig . php .
* /
// This is a list of all supported by the online editor languages.
FCKConfig . AvailableLanguages = 'en,af,ar,ast,bg,bn,bs,ca,cs,da,de,el,en-au,en-ca,en-uk,eo,es,et,eu,fa,fi,fo,fr-ca,fr,fur,gl,gu,he,hi,hr,hu,id,is,it,ja,ka,km,ko,lt,lv,mk,mn,ms,nb,nl,no,oc,pl,prs,ps,pt-br,pt,qu,ro,ru,sk,sl,sr-latn,sr,sv,sw,th,tr,uk,vi,yo,zh-cn,zh' ;
// This script selects for loading source/compressed versions of some javascripts and ensures that the English language
// would be shown for plugins, if they are not provided with the requiested language files.
LoadScript ( ( window . document . location . toString ( ) . indexOf ( 'fckeditor.original.html' ) != - 1 ) // Please, do not disable this script.
? ( FCKConfig . PluginsPath + 'customizations/fckplugin_load.js' )
: ( FCKConfig . PluginsPath + 'customizations/fckplugin_load.js' ) ) ;
// Reading the list of the enabled in myconfig.php plugins.
FCKConfig . LoadPlugin = eval ( '(' + FCKConfig . PageConfig . LoadPlugin + ')' ) ;
// Loading the enabled plugins.
for ( var i = 0 ; i < FCKConfig . LoadPlugin . length ; i ++ ) {
FCKConfig . Plugins . Add ( FCKConfig . LoadPlugin [ i ] , FCKConfig . AvailableLanguages ) ;
}
// API-key for the "googlemaps" plugin.
// The following key is valid for http://localhost. You must get one for each server where you want to use
// the plugin, just get the key for free here after agreeing to the Terms of Use of the GoogleMaps API:
// http://www.google.com/apis/maps/signup.html.
// If you leave an empty string then the toolbar icon won't be shown.
FCKConfig . GoogleMaps _Key = 'ABQIAAAAlXu5Pw6DFAUgqM2wQn01gxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSy5hTGQdsosYD3dz6faZHVrO-02A' ;
// This is the old flash plugin. Now the editor has a built-in flash dialog.
// Probably this plugin will be removed at the next release.
//FCKConfig.Plugins.Add('Flash', 'en') ;
/ *
* Loading custom plugins .
* /
// You may add your own plugins here, i.e. write something as follows:
// FCKConfig.Plugins.Add('my_plugin', 'en') ;
/ *
* Quick - upload tabs .
* /
// 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.