myconfig.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. * Chamilo LMS
  3. *
  4. * Copyright (c) 2008-2010 Juan Carlos Raña
  5. * Copyright (c) 2008-2010 Ivan Tcholakov
  6. * Copyright (c) 2008-2009 Julio Montoya
  7. * Copyright (c) 2008-2009 Dokeos SPRL
  8. *
  9. * For a full list of contributors, see "credits.txt".
  10. * The full license can be read in "license.txt".
  11. *
  12. * This program is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License
  14. * as published by the Free Software Foundation; either version 2
  15. * of the License, or (at your option) any later version.
  16. *
  17. * See the GNU General Public License for more details.
  18. */
  19. /*
  20. * Custom editor configuration settings.
  21. *
  22. * Follow this link for more information:
  23. * http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
  24. *
  25. * Please, do not modify the file fckconfig.js in order to make upgrades easy.
  26. * Just create your desired settings in this file, myconfig.js.
  27. * Also, configuration options (with higher priority) may be created/modified within the file myconfig.php.
  28. */
  29. FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ;
  30. FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/silver/' ;
  31. FCKConfig.ProtectedSource.Add( /<script[\s\S]*?\/script>/gi ) ; // To protect <script> tags.
  32. FCKConfig.AutoDetectLanguage = false ;
  33. FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','Table','Form'] ;
  34. FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml.php' ;
  35. FCKConfig.DisableFFTableHandles = false ;
  36. FCKConfig.SmileyWindowWidth = 450 ;
  37. FCKConfig.SmileyWindowHeight = 250 ;
  38. /*
  39. * Loading plugins integrated by the Chamilo team. To enable/disable them, see myconfig.php.
  40. */
  41. // This is a list of all supported by the online editor languages.
  42. 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' ;
  43. // This script selects for loading source/compressed versions of some javascripts and ensures that the English language
  44. // would be shown for plugins, if they are not provided with the requiested language files.
  45. LoadScript( ( window.document.location.toString().indexOf('fckeditor.original.html') != -1 ) // Please, do not disable this script.
  46. ? ( FCKConfig.PluginsPath + 'customizations/fckplugin_load.js' )
  47. : ( FCKConfig.PluginsPath + 'customizations/fckplugin_load.js' ) ) ;
  48. // Reading the list of the enabled in myconfig.php plugins.
  49. FCKConfig.LoadPlugin = eval( '(' + FCKConfig.PageConfig.LoadPlugin + ')' ) ;
  50. // Loading the enabled plugins.
  51. for ( var i = 0 ; i < FCKConfig.LoadPlugin.length ; i++ ) {
  52. FCKConfig.Plugins.Add( FCKConfig.LoadPlugin[i], FCKConfig.AvailableLanguages ) ;
  53. }
  54. // API-key for the "googlemaps" plugin.
  55. // The following key is valid for http://localhost. You must get one for each server where you want to use
  56. // the plugin, just get the key for free here after agreeing to the Terms of Use of the GoogleMaps API:
  57. // http://www.google.com/apis/maps/signup.html.
  58. // If you leave an empty string then the toolbar icon won't be shown.
  59. FCKConfig.GoogleMaps_Key = 'ABQIAAAAlXu5Pw6DFAUgqM2wQn01gxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSy5hTGQdsosYD3dz6faZHVrO-02A' ;
  60. // This is the old flash plugin. Now the editor has a built-in flash dialog.
  61. // Probably this plugin will be removed at the next release.
  62. //FCKConfig.Plugins.Add('Flash', 'en') ;
  63. /*
  64. * Loading custom plugins.
  65. */
  66. // You may add your own plugins here, i.e. write something as follows:
  67. // FCKConfig.Plugins.Add('my_plugin', 'en') ;
  68. /*
  69. * Quick-upload tabs.
  70. */
  71. // Lists of allowed and denied name extensions of files to be uploaded.
  72. // for all acceptable types of files;
  73. 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
  74. FCKConfig.LinkUploadDeniedExtensions = '' ;
  75. // for images;
  76. FCKConfig.ImageUploadAllowedExtensions = '.(jpg|gif|jpeg|png|bmp)$' ;
  77. FCKConfig.ImageUploadDeniedExtensions = '' ;
  78. // for flash objects;
  79. FCKConfig.FlashUploadAllowedExtensions = '.(swf)$' ;
  80. FCKConfig.FlashUploadDeniedExtensions = '' ;
  81. // for audio files;
  82. FCKConfig.MP3UploadAllowedExtensions = '.(mp3)$' ;
  83. FCKConfig.MP3UploadDeniedExtensions = '' ;
  84. // for video files;
  85. FCKConfig.VideoUploadAllowedExtensions = '.(mpg|mpeg|mp4|avi|wmv|mov|asf)$' ;
  86. FCKConfig.VideoUploadDeniedExtensions = '' ;
  87. // for video (flv) files.
  88. FCKConfig.MediaUploadAllowedExtensions = '.(flv|mp4)$' ;
  89. FCKConfig.MediaUploadDeniedExtensions = '' ;
  90. // Note: These lists get combined with the platform's white and black lists.