myconfig.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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,bg,bn,bs,ca,cs,da,de,el,en-au,en-ca,en-uk,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,km,ko,lt,lv,mn,ms,nb,nl,no,pl,pt-br,pt,ro,ru,sk,sl,sr-latn,sr,sv,th,tr,uk,vi,zh-cn,zh' ;
  46. // Loadding additional script that ensures the English language will be shown for plugins, if they are not provided with the requiested language files.
  47. LoadScript( 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. * File Manager.
  70. */
  71. //Upload path for the Image manager. Leave it empty.
  72. FCKConfig.IMUploadPath = '' ;
  73. /*
  74. * Quick-upload tabs.
  75. */
  76. // Lists of allowed and denied name extensions of files to be uploaded.
  77. // for all acceptable types of files;
  78. 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
  79. FCKConfig.LinkUploadDeniedExtensions = '' ;
  80. // for images;
  81. FCKConfig.ImageUploadAllowedExtensions = '.(jpg|gif|jpeg|png|bmp)$' ;
  82. FCKConfig.ImageUploadDeniedExtensions = '' ;
  83. // for flash objects;
  84. FCKConfig.FlashUploadAllowedExtensions = '.(swf)$' ;
  85. FCKConfig.FlashUploadDeniedExtensions = '' ;
  86. // for audio files;
  87. FCKConfig.MP3UploadAllowedExtensions = '.(mp3)$' ;
  88. FCKConfig.MP3UploadDeniedExtensions = '' ;
  89. // for video files;
  90. FCKConfig.VideoUploadAllowedExtensions = '.(mpg|mpeg|mp4|avi|wmv|mov|asf)$' ;
  91. FCKConfig.VideoUploadDeniedExtensions = '' ;
  92. // for video (flv) files.
  93. FCKConfig.MediaUploadAllowedExtensions = '.(flv|mp4)$' ;
  94. FCKConfig.MediaUploadDeniedExtensions = '' ;
  95. // Note: These lists get combined with the platform's white and black lists.