myconfig.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  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. * Editor's toolbar definitions.
  24. */
  25. FCKConfig.ToolbarSets["Full"] = [
  26. ['FitWindow','PasteWord','Link','Unlink','Anchor','-','Image','flvPlayer','Flash','EmbedMovies','MP3','YouTube','Table','Rule','-','Subscript', 'Superscript','-','OrderedList','UnorderedList','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],'/',['FontFormat','Style','FontName','FontSize','Bold','Italic','Underline','StrikeThrough','TextColor', 'BGColor','-','Source']
  27. ] ;
  28. FCKConfig.ToolbarSets["Middle"] = [
  29. ['FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image','Flash','Source']
  30. ] ;
  31. FCKConfig.ToolbarSets["Small"] = [
  32. ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','OrderedList','UnorderedList','Table']
  33. ] ;//used by test ? exercice/feedback.php
  34. ////
  35. ///// admin tools /////
  36. //Edit platform home page
  37. FCKConfig.ToolbarSets["EditHomePage"] = [
  38. ['NewPage','Templates','Save','Print','PageBreak','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll','-','Find'],
  39. ['Link','Unlink','Anchor'],
  40. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  41. ['Table','Smiley','SpecialChar','googlemaps'],
  42. ['FontFormat','FontName','FontSize'],
  43. ['Bold','Italic','Underline'],
  44. ['JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  45. ['Source']
  46. ] ;
  47. //Insert or Edit a page link in platform home page
  48. FCKConfig.ToolbarSets["LinksHomePage"] = [
  49. ['NewPage','Templates','Save','Print','PageBreak','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll','-','Find'],
  50. ['Link','Unlink','Anchor'],
  51. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  52. ['Table','Smiley','SpecialChar','googlemaps'],
  53. ['FontFormat','FontName','FontSize'],
  54. ['Bold','Italic','Underline'],
  55. ['JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  56. ['Source']
  57. ] ;
  58. //System Announcements
  59. FCKConfig.ToolbarSets["SystemAnnouncements"] = [
  60. ['Save','FitWindow','PasteWord','-','Undo','Redo'],
  61. ['Link','Unlink','Anchor'],
  62. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  63. ['Table','SpecialChar'],
  64. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'],
  65. '/',
  66. ['Style','FontFormat','FontName','FontSize'],
  67. ['Bold','Italic','Underline'],
  68. ['JustifyLeft','JustifyCenter','JustifyRight']
  69. ] ;
  70. //Global Agenda
  71. FCKConfig.ToolbarSets["GlobalAgenda"] = [
  72. ['FitWindow','-','PasteWord','-','Undo','Redo'],
  73. ['Link','Unlink'],
  74. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  75. ['Table','SpecialChar','googlemaps'],
  76. ['FontName','FontSize'],
  77. ['Bold','Italic','Underline'],
  78. ['OrderedList','UnorderedList','-','TextColor','BGColor'],
  79. ['Source']
  80. ] ;
  81. //Admin Templates
  82. FCKConfig.ToolbarSets["AdminTemplates"] = [
  83. ['NewPage','Templates','Save','Print','PageBreak','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll','-','Find'],
  84. ['Bold','Italic','Underline'],
  85. ['Link','Unlink','Anchor'],
  86. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  87. ['Table','Smiley','SpecialChar','googlemaps'],
  88. ['FontFormat','FontName','FontSize'],
  89. ['JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  90. ['Source']
  91. ] ;
  92. //FAQ
  93. FCKConfig.ToolbarSets["FAQ"] = [
  94. ['Save','Preview','Source']
  95. ];
  96. ///// users tools /////
  97. //My Profile (Optional fields)
  98. FCKConfig.ToolbarSets["Profil"] = [
  99. ['FitWindow','-','PasteWord','-','Undo','Redo'],
  100. ['Link','Unlink','Anchor'],
  101. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  102. ['Table','Smiley'],
  103. '/',
  104. ['FontName','FontSize'],
  105. ['Bold','Italic','Underline'],
  106. ['JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
  107. ['Source']
  108. ] ;
  109. //Messages
  110. FCKConfig.ToolbarSets["Messages"] = [
  111. ['FitWindow','Undo','Redo'],
  112. ['Link','Unlink'],
  113. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  114. ['Table','Smiley','googlemaps'],
  115. ['Bold','Italic','Underline'],
  116. ['OrderedList','UnorderedList','-','Blockquote','-','TextColor'],
  117. ['ShowBlocks']
  118. ] ;
  119. ///// course tools /////
  120. //Course introduction
  121. FCKConfig.ToolbarSets["Introduction"] = [
  122. ['NewPage','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll'],
  123. ['Link','Unlink','Anchor'],
  124. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  125. ['Table','SpecialChar'],
  126. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'],
  127. '/',
  128. ['Style','FontFormat','FontName','FontSize'],
  129. ['Bold','Italic','Underline'],
  130. ['JustifyLeft','JustifyCenter','JustifyRight']
  131. ] ;
  132. //Agenda
  133. FCKConfig.ToolbarSets["Agenda"] = [
  134. ['Save','FitWindow','PasteWord','-','Undo','Redo'],
  135. ['Link','Unlink','Anchor'],
  136. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  137. ['Table','SpecialChar'],
  138. '/',
  139. ['Style','FontFormat','FontName','FontSize'],
  140. ['Bold','Italic','Underline'],
  141. ['JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  142. ['Source']
  143. ] ;
  144. FCKConfig.ToolbarSets["Agenda_Student"] = [
  145. ['Save','FitWindow','PasteWord','-','Undo','Redo'],
  146. ['Link','Unlink','Anchor'],
  147. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  148. ['Table','SpecialChar'],
  149. '/',
  150. ['FontFormat','FontName','FontSize'],
  151. ['Bold','Italic','Underline'],
  152. ['JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  153. ['ShowBlocks']
  154. ] ;
  155. //Announcements
  156. FCKConfig.ToolbarSets["Announcements"] = [
  157. ['Save','FitWindow','PasteWord','-','Undo','Redo'],
  158. ['Link','Unlink','Anchor'],
  159. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  160. ['Table','SpecialChar'],
  161. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'],
  162. '/',
  163. ['Style','FontFormat','FontName','FontSize'],
  164. ['Bold','Italic','Underline'],
  165. ['JustifyLeft','JustifyCenter','JustifyRight']
  166. ] ;
  167. FCKConfig.ToolbarSets["Announcements_Student"] = [
  168. ['Save','FitWindow','PasteWord','-','Undo','Redo'],
  169. ['Link','Unlink','Anchor'],
  170. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  171. ['Table','SpecialChar'],
  172. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  173. '/',
  174. ['Style','FontFormat','FontName','FontSize'],
  175. ['Bold','Italic','Underline'],
  176. ['JustifyLeft','JustifyCenter','JustifyRight'],
  177. ['ShowBlocks']
  178. ] ;
  179. //Blog
  180. FCKConfig.ToolbarSets["Blog"] = [
  181. ['FitWindow','-','PasteWord','-','Undo','Redo'],
  182. ['Link','Unlink','Anchor'],
  183. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  184. ['Table','googlemaps'],
  185. ['FontName','FontSize'],
  186. ['Bold','Italic','Underline'],
  187. ['JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
  188. ['Source']
  189. ] ;
  190. FCKConfig.ToolbarSets["Blog_Student"] = [
  191. ['FitWindow','-','PasteWord','-','Undo','Redo'],
  192. ['Link','Unlink','Anchor'],
  193. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  194. ['Table','googlemaps'],
  195. ['FontName','FontSize'],
  196. ['Bold','Italic','Underline'],
  197. ['JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
  198. ['ShowBlocks']
  199. ] ;
  200. FCKConfig.ToolbarSets["BlogComment"] = [
  201. ['FitWindow','-','PasteWord','-','Undo','Redo'],
  202. ['Link','Unlink'],
  203. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  204. ['Table','googlemaps'],
  205. ['Bold','Italic','Underline'],
  206. ['JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
  207. ['Source']
  208. ] ;
  209. FCKConfig.ToolbarSets["BlogComment_Student"] = [
  210. ['FitWindow','-','PasteWord','-','Undo','Redo'],
  211. ['Link','Unlink'],
  212. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  213. ['Table','googlemaps'],
  214. ['Bold','Italic','Underline'],
  215. ['JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
  216. ['ShowBlocks']
  217. ] ;
  218. //Course Description
  219. FCKConfig.ToolbarSets["CourseDescription"] = [
  220. ['NewPage','Save','FitWindow','PasteWord','-','Undo','Redo'],
  221. ['Link','Unlink','Anchor'],
  222. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  223. ['Table','SpecialChar'],
  224. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','Source'],
  225. '/',
  226. ['Style','FontFormat','FontName','FontSize'],
  227. ['Bold','Italic','Underline'],
  228. ['JustifyLeft','JustifyCenter','JustifyRight']
  229. ] ;
  230. //Documents
  231. FCKConfig.ToolbarSets["Documents"] = [
  232. ['Save','FitWindow','PasteWord','-','Undo','Redo'],
  233. ['Link','Unlink','Anchor'],
  234. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  235. ['Table','SpecialChar'],
  236. ['Outdent','Indent','-','TextColor','BGColor','-','OrderedList','UnorderedList','-','Source'],
  237. '/',
  238. ['Style','FontFormat','FontName','FontSize'],
  239. ['Bold','Italic','Underline'],
  240. ['JustifyLeft','JustifyCenter','JustifyRight']
  241. ] ;
  242. FCKConfig.ToolbarSets["Documents_Student"] = [
  243. ['Save','FitWindow','PasteWord','-','Undo','Redo'],
  244. ['Link','Unlink','Anchor'],
  245. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  246. ['Table','SpecialChar'],
  247. ['Outdent','Indent','-','TextColor','BGColor','-','OrderedList','UnorderedList'],
  248. '/',
  249. ['Style','FontFormat','FontName','FontSize'],
  250. ['Bold','Italic','Underline'],
  251. ['JustifyLeft','JustifyCenter','JustifyRight'],
  252. ['ShowBlocks']
  253. ];
  254. //Forum
  255. FCKConfig.ToolbarSets["ForumLight"] = [
  256. ['Bold','Italic','Underline','StrikeThrough']
  257. ] ;
  258. FCKConfig.ToolbarSets["Forum"] = [
  259. ['Save','FitWindow','PasteWord','-','Undo','Redo'],
  260. ['Link','Unlink','Anchor'],
  261. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  262. ['Table','SpecialChar'],
  263. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','Source'],
  264. '/',
  265. ['Style','FontFormat','FontName','FontSize'],
  266. ['Bold','Italic','Underline'],
  267. ['JustifyLeft','JustifyCenter','JustifyRight']
  268. ];
  269. FCKConfig.ToolbarSets["Forum_Student"] = [
  270. ['Save','FitWindow','PasteWord','-','Undo','Redo'],
  271. ['Link','Unlink','Anchor'],
  272. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  273. ['Table','SpecialChar'],
  274. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  275. '/',
  276. ['Style','FontFormat','FontName','FontSize'],
  277. ['Bold','Italic','Underline'],
  278. ['JustifyLeft','JustifyCenter','JustifyRight'],
  279. ['ShowBlocks']
  280. ] ;
  281. //Glossary
  282. FCKConfig.ToolbarSets["Glossary"] = [
  283. ['Save','FitWindow','PasteWord','-','Undo','Redo'],
  284. ['Link','Unlink','Anchor'],
  285. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  286. ['Table','SpecialChar'],
  287. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'],
  288. '/',
  289. ['Style','FontFormat','FontName','FontSize'],
  290. ['Bold','Italic','Underline'],
  291. ['JustifyLeft','JustifyCenter','JustifyRight']
  292. ] ;
  293. //Learning Path
  294. FCKConfig.ToolbarSets["LearnPath"] = [
  295. ['PasteWord','-','Undo','Redo'],
  296. ['Link','Unlink','Anchor'],
  297. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','Table','SpecialChar'],
  298. ['Outdent','Indent','TextColor','BGColor','-','OrderedList','UnorderedList','JustifyLeft','JustifyCenter','JustifyRight'],
  299. '/',
  300. ['Style','FontFormat','FontName','FontSize'],
  301. ['Bold','Italic','Underline','-','Source'],
  302. ] ;//save, FitWindow don't run well here
  303. FCKConfig.ToolbarSets["CommentLearningPath"] = [
  304. ['Link','Unlink','Bold','Italic','TextColor','BGColor','Source']
  305. ] ;
  306. //Notebook
  307. FCKConfig.ToolbarSets["Notebook"] = [
  308. ['Save','FitWindow','-','PasteWord','-','Undo','Redo'],
  309. ['Link','Unlink','Anchor'],
  310. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  311. ['Table','SpecialChar'],
  312. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'],
  313. '/',
  314. ['Style','FontFormat','FontName','FontSize'],
  315. ['Bold','Italic','Underline'],
  316. ['JustifyLeft','JustifyCenter','JustifyRight']
  317. ] ;
  318. FCKConfig.ToolbarSets["Notebook_Student"] = [
  319. ['Save','FitWindow','-','PasteWord','-','Undo','Redo'],
  320. ['Link','Unlink','Anchor'],
  321. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  322. ['Table','SpecialChar'],
  323. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  324. '/',
  325. ['Style','FontFormat','FontName','FontSize'],
  326. ['Bold','Italic','Underline'],
  327. ['JustifyLeft','JustifyCenter','JustifyRight'],
  328. ['ShowBlocks']
  329. ] ;
  330. //Survey
  331. FCKConfig.ToolbarSets["Survey"] = [
  332. ['FitWindow'],
  333. ['Link','Unlink'],
  334. ['Image'],
  335. ['Table'],
  336. ['FontSize'],
  337. ['Bold','Italic'],
  338. ['OrderedList','UnorderedList','-','TextColor'],
  339. ['Source']
  340. ] ;
  341. //Test
  342. FCKConfig.ToolbarSets["TestDescription"] = [
  343. ['FitWindow','-','PasteWord','-','Undo','Redo'],
  344. ['Link','Unlink','Anchor'],
  345. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  346. ['Table','SpecialChar'],
  347. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'],
  348. '/',
  349. ['Style','FontFormat','FontName','FontSize'],
  350. ['Bold','Italic','Underline'],
  351. ['JustifyLeft','JustifyCenter','JustifyRight']
  352. ] ;
  353. FCKConfig.ToolbarSets["QuestionDescription"] = [
  354. ['FitWindow','-','PasteWord','-','Undo','Redo'],
  355. ['Link','Unlink'],
  356. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  357. ['Table','SpecialChar'],
  358. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'],
  359. '/',
  360. ['Style','FontFormat','FontName','FontSize'],
  361. ['Bold','Italic','Underline'],
  362. ['JustifyLeft','JustifyCenter','JustifyRight']
  363. ] ;
  364. FCKConfig.ToolbarSets["Answer"] = [
  365. ['FitWindow','Bold','Image','Link','PasteWord','MP3','Table','Subscript','Superscript','Source']
  366. ] ;
  367. FCKConfig.ToolbarSets["FreeAnswer"] = [
  368. ['FitWindow','Bold','Image','Link','PasteWord','MP3','Table','Subscript','Superscript','ShowBlocks']
  369. ] ;
  370. FCKConfig.ToolbarSets["CommentAnswers"] = [
  371. ['Link','Unlink','Bold','Italic','TextColor','BGColor']
  372. ] ;
  373. //Wiki
  374. FCKConfig.ToolbarSets["Wiki"] = [
  375. ['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll','-','Find'],
  376. ['Wikilink','Link','Unlink','Anchor'],
  377. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  378. ['Table','Smiley','SpecialChar','googlemaps'],
  379. ['FontFormat','FontName','FontSize'],
  380. ['Bold','Italic','Underline'],
  381. ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  382. ['Source']
  383. ] ;
  384. FCKConfig.ToolbarSets["Wiki_Student"] = [
  385. ['NewPage','Save','PageBreak','Preview','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll','-','Find'],
  386. ['Wikilink','Link','Unlink','Anchor'],
  387. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  388. ['Table','Smiley','SpecialChar','googlemaps'],
  389. ['FontFormat','FontName','FontSize'],
  390. ['Bold','Italic','Underline'],
  391. ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  392. ['ShowBlocks']
  393. ] ;
  394. //Gradebook
  395. FCKConfig.ToolbarSets["Gradebook"] = [
  396. ['Save','FitWindow','-','PasteWord','-','Undo','Redo'],
  397. ['Link','Unlink','Anchor'],
  398. ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
  399. ['Table','SpecialChar'],
  400. ['OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
  401. '/',
  402. ['Style','FontFormat','FontName','FontSize'],
  403. ['Bold','Italic','Underline'],
  404. ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
  405. ['Source']
  406. ] ;
  407. /*
  408. * Toolbar drop-down lists customizations.
  409. */
  410. // Reduction of the format list.
  411. FCKConfig.FontFormats = 'p;h1;h2;h3;h4;h5' ;
  412. /*
  413. * Helper variables.
  414. */
  415. // At this moment of loading editor's javascripts, the setting FCKConfig.AdvancedFileManager
  416. // has not been read yet from the php-integration file. We are able to detect which file manager
  417. // will be used in another way. The following property has pure boolean type: true/false.
  418. FCK.AdvancedFileManager = FCKConfig.PageConfig.AdvancedFileManager ;
  419. var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;
  420. /*
  421. * Plugins.
  422. * If you want to add a non-existing language code in some of the pligin
  423. * declarations, it is mandatory a corresponding language file to be opened
  424. * in the plugin's "lang" directory.
  425. */
  426. // The "customizations" plugin modifies some internal functionalities of the editor.
  427. // It should be loaded before the other plugins.
  428. FCKConfig.Plugins.Add('customizations', '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') ;
  429. // These plugins improve table-operations.
  430. FCKConfig.Plugins.Add('dragresizetable') ;
  431. FCKConfig.Plugins.Add('tablecommands') ;
  432. // Audio files insertion.
  433. FCKConfig.Plugins.Add('MP3', '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') ;
  434. // Another dialog for insertion audio files.
  435. // If you wish to use it, disable the "MP3" plugin first.
  436. //FCKConfig.Plugins.Add('audio', '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') ;
  437. // A specialised browser/editor for images.
  438. if (!FCK.AdvancedFileManager)
  439. {
  440. // It is not needed in the advanced file manager mode.
  441. // The laanguage sub-system of the Image Manager is different.
  442. // There is no need available languages to be enumerated.
  443. FCKConfig.Plugins.Add('ImageManager') ;
  444. }
  445. // This is the old flash plugin. Now the editor has a built-in flash dialog.
  446. //FCKConfig.Plugins.Add('Flash', 'en') ;
  447. // Embeding video files.
  448. FCKConfig.Plugins.Add('fckEmbedMovies', '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');
  449. // flv video files insertion.
  450. FCKConfig.Plugins.Add('flvPlayer', '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') ;
  451. // Video streams insertion, YouTube service.
  452. FCKConfig.Plugins.Add('youtube', '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') ;
  453. // Digital maps insertion, GoogleMaps service.
  454. FCKConfig.Plugins.Add('googlemaps', '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') ;
  455. // This key is for http://localhost. You must get one for each server where you want to use the plugin,
  456. // just get the key for free here after agreeing to the Terms of Use of the GoogleMaps API:
  457. // http://www.google.com/apis/maps/signup.html. // If you leave an empty string then the toolbar icon won't be shown.
  458. FCKConfig.GoogleMaps_Key = 'ABQIAAAAlXu5Pw6DFAUgqM2wQn01gxT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSy5hTGQdsosYD3dz6faZHVrO-02A' ;
  459. // Mathematical formulas insertion.
  460. // In order the "mimetex" plugin to work prpoperly, preliminary changes
  461. // in your server configuration have to be done. See the installation guide.
  462. FCKConfig.Plugins.Add('mimetex', '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') ;
  463. // Wiki-formatted links insertion.
  464. FCKConfig.Plugins.Add('wikilink', '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') ;
  465. // A dialog for assigning hyperlinks to specified image areas.
  466. FCKConfig.Plugins.Add('imgmap', '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');
  467. /*
  468. * Settings for browsing the server.
  469. */
  470. // For all acceptable types of resources (files).
  471. // true/false to enable/disable the browser.
  472. FCKConfig.LinkBrowser = true ;
  473. // Browser window sizes.
  474. FCKConfig.LinkBrowserWindowWidth = 782 ;
  475. FCKConfig.LinkBrowserWindowHeight = 490 ;
  476. // For images.
  477. // true/false to enable/disable the browser.
  478. FCKConfig.ImageBrowser = true ;
  479. // Browser window sizes.
  480. FCKConfig.ImageBrowserWindowWidth = 782 ;
  481. FCKConfig.ImageBrowserWindowHeight = 490 ;
  482. // Upload path for the Image manager. Leave it empty.
  483. FCKConfig.IMUploadPath = '' ;
  484. // For flash objects.
  485. // true/false to enable/disable the browser.
  486. FCKConfig.FlashBrowser = true ;
  487. // Browser window sizes.
  488. FCKConfig.FlashBrowserWindowWidth = 782 ;
  489. FCKConfig.FlashBrowserWindowHeight = 490 ;
  490. // For audio files.
  491. // true/false to enable/disable the browser.
  492. FCKConfig.MP3Browser = true ;
  493. // Browser window sizes.
  494. FCKConfig.MP3BrowserWindowWidth = 782 ;
  495. FCKConfig.MP3BrowserWindowHeight = 490 ;
  496. // For video files.
  497. // true/false to enable/disable the browser.
  498. FCKConfig.VideoBrowser = true ;
  499. // Browser window sizes.
  500. FCKConfig.VideoBrowserWindowWidth = 782 ;
  501. FCKConfig.VideoBrowserWindowHeight = 490 ;
  502. // For video (flv) files.
  503. // true/false to enable/disable the browser.
  504. FCKConfig.MediaBrowser = true ;
  505. // Browser window sizes.
  506. FCKConfig.MediaBrowserWindowWidth = 782 ;
  507. FCKConfig.MediaBrowserWindowHeight = 490 ;
  508. /*
  509. * Settings for direct uploads on the server, without using browsers.
  510. * Some of the editor's dialogs have quick-upload tabs for this purpose.
  511. */
  512. // For all acceptable types of resources (files).
  513. // true/false to enable/disable the quick-upload tab.
  514. FCKConfig.LinkUpload = true ;
  515. // To be moved in the php-integration file.
  516. 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
  517. FCKConfig.LinkUploadDeniedExtensions = "" ;
  518. // For images.
  519. // true/false to enable/disable the quick-upload tab.
  520. FCKConfig.ImageUpload = true ;
  521. // To be moved in the php-integration file.
  522. FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png|bmp)$" ;
  523. FCKConfig.ImageUploadDeniedExtensions = "" ;
  524. // For flash objects.
  525. // true/false to enable/disable the quick-upload tab.
  526. FCKConfig.FlashUpload = true ;
  527. // To be moved in the php-integration file.
  528. FCKConfig.FlashUploadAllowedExtensions = ".(swf)$" ;
  529. FCKConfig.FlashUploadDeniedExtensions = "" ;
  530. // For audio files.
  531. // true/false to enable/disable the quick-upload tab.
  532. FCKConfig.MP3Upload = true ;
  533. // To be moved in the php-integration file.
  534. FCKConfig.MP3UploadAllowedExtensions = ".(mp3)$" ;
  535. FCKConfig.MP3UploadDeniedExtensions = "" ;
  536. // For video files.
  537. // true/false to enable/disable the quick-upload tab.
  538. FCKConfig.VideoUpload = true ;
  539. // To be moved in the php-integration file.
  540. FCKConfig.VideoUploadAllowedExtensions = ".(mpg|mpeg|mp4|avi|wmv|mov|asf)$" ;
  541. FCKConfig.VideoUploadDeniedExtensions = "" ;
  542. // For video (flv) files.
  543. // true/false to enable/disable the quick-upload tab.
  544. FCKConfig.MediaUpload = true ;
  545. // To be moved in the php-integration file.
  546. FCKConfig.MediaUploadAllowedExtensions = ".(flv)$" ;
  547. FCKConfig.MediaUploadDeniedExtensions = "" ;
  548. /*
  549. * Alternative settings for the advanced file manager mode.
  550. */
  551. // If you wish to alter some of the settings above and to make them
  552. // specific for the advanced file manager mode, you may do this within
  553. // the following "if" block.
  554. if (FCK.AdvancedFileManager)
  555. {
  556. FCKConfig.LinkUpload = false ;
  557. FCKConfig.ImageUpload = false ;
  558. FCKConfig.MP3Upload = false ;
  559. //FCKConfig.FlashUpload = false ; //See plugin
  560. }
  561. /*
  562. * Other settings.
  563. */
  564. FCKConfig.UserStatus = 'teacher' ;