myconfig.js 5.0 KB

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