123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390 |
- <?php
- if ((api_get_setting('more_buttons_maximized_mode') == 'true')) {
- $config['ToolbarSets']['Directory'] = 'extended';
- } else {
- $config['ToolbarSets']['Directory'] = 'default';
- }
- $config['LoadPlugin'][] = 'customizations';
- if (trim(get_lang('text_dir', '')) != 'rtl') {
-
- $config['LoadPlugin'][] = 'dragresizetable';
- }
- $config['LoadPlugin'][] = 'tablecommands';
- $config['LoadPlugin'][] = 'tableoneclick';
- $config['LoadPlugin'][] = 'prompt';
- $config['LoadPlugin'][] = 'audio';
- if (api_get_setting('show_glossary_in_documents') == 'ismanual') {
- $config['LoadPlugin'][] = 'glossary';
- }
- if (!(api_get_setting('advanced_filemanager') == 'true')) {
- $config['LoadPlugin'][] = 'ImageManager';
-
-
-
- $config['OpenImageManagerInANewWindow'] = false;
- }
- $config['LoadPlugin'][] = 'fckEmbedMovies';
- $config['LoadPlugin'][] = 'flvPlayer';
- $config['FlashEmbeddingMethod'] = 'adobe' ;
- if (api_get_setting('youtube_for_students') == 'true') {
- $config['LoadPlugin'][] = 'youtube';
- } else {
- if (api_is_allowed_to_edit() || api_is_platform_admin()) {
- $config['LoadPlugin'][] = 'youtube';
- }
- }
- if ((api_get_setting('enabled_googlemaps') == 'true')) {
- $config['LoadPlugin'][] = 'googlemaps';
-
-
- }
- if ((api_get_setting('math_mimetex') == 'true')) {
- $config['LoadPlugin'][] = 'mimetex';
-
-
-
-
-
-
-
-
- $config['MimetexExecutableInstalled'] = 'true';
-
-
-
-
-
-
- if (IS_WINDOWS_OS) {
- $config['MimetexExecutableDetectionMethod'] = 'bootstrap_ip';
- } else {
- $config['MimetexExecutableDetectionMethod'] = 'server_name';
- }
-
- $config['MimetexExecutableDetectionTimeout'] = 0.05;
- }
- if ((api_get_setting('math_asciimathML') == 'true')) {
-
- if ($this->Config['FullPage'] || api_get_setting('include_asciimathml_script') == 'true') {
- $config['LoadPlugin'][] = 'asciimath';
- }
- }
- if ((api_get_setting('enabled_asciisvg') == 'true')) {
-
- if ($this->Config['FullPage'] || api_get_setting('include_asciimathml_script') == 'true') {
- $config['LoadPlugin'][] = 'asciisvg';
- }
- }
- if (api_get_setting('include_asciimathml_script') == 'true') {
-
-
- echo '<script type="text/javascript">var translateOnLoad = false ;</script>';
- }
- if ((api_get_setting('enabled_wiris') == 'true')) {
- $config['LoadPlugin'][] = 'fckeditor_wiris';
- }
- if ((api_get_setting('enabled_imgmap') == 'true')) {
- $config['LoadPlugin'][] = 'imgmap';
- }
- $config['LoadPlugin'][] = 'wikilink';
- if ((api_get_setting('enabled_insertHtml') == 'true')) {
- $config['LoadPlugin'][] = 'insertHtml';
-
-
-
- $config['insertHtml_showDialog'] = true;
-
- $config['insertHtml_buttonTooltip'] = '';
-
- $config['insertHtml_showTextarea']= false;
-
- $config['insertHtml_textareaWidth'] = 400;
- $config['insertHtml_textareaHeight'] = 300;
-
- $config['insertHtml_dialogWidth'] = 475;
- $config['insertHtml_dialogHeight'] = 475;
- }
- $config['LoadPlugin'][] = 'Abbr';
- $config['LinkBrowser'] = true;
- $config['ImageBrowser'] = true;
- $config['FlashBrowser'] = true ;
- $config['MP3Browser'] = true ;
- $config['VideoBrowser'] = true ;
- $config['MediaBrowser'] = true ;
- $config['OpenSimpleFileManagerInANewWindow'] = false;
- $config['OpenAdvancedFileManagerInANewWindow'] = false;
- if ((api_get_setting('advanced_filemanager') == 'true')) {
-
-
-
- $config['LinkBrowserWindowWidth'] = 930 ;
- $config['LinkBrowserWindowHeight'] = 580 ;
-
- $config['ImageBrowserWindowWidth'] = 930 ;
- $config['ImageBrowserWindowHeight'] = 580 ;
-
- $config['FlashBrowserWindowWidth'] = 930 ;
- $config['FlashBrowserWindowHeight'] = 580 ;
-
- $config['MP3BrowserWindowWidth'] = 930 ;
- $config['MP3BrowserWindowHeight'] = 580 ;
-
- $config['VideoBrowserWindowWidth'] = 930 ;
- $config['VideoBrowserWindowHeight'] = 580 ;
-
- $config['MediaBrowserWindowWidth'] = 930 ;
- $config['MediaBrowserWindowHeight'] = 580 ;
-
- $config['LinkUpload'] = false;
- $config['ImageUpload'] = false;
- $config['FlashUpload'] = false;
- $config['MP3Upload'] = false;
- $config['VideoUpload'] = false;
- $config['MediaUpload'] = false;
- } else {
-
-
-
- $config['LinkBrowserWindowWidth'] = 780 ;
- $config['LinkBrowserWindowHeight'] = 500 ;
-
- $config['ImageBrowserWindowWidth'] = 780 ;
- $config['ImageBrowserWindowHeight'] = 500 ;
-
- $config['FlashBrowserWindowWidth'] = 780 ;
- $config['FlashBrowserWindowHeight'] = 500 ;
-
- $config['MP3BrowserWindowWidth'] = 780 ;
- $config['MP3BrowserWindowHeight'] = 500 ;
-
- $config['VideoBrowserWindowWidth'] = 780 ;
- $config['VideoBrowserWindowHeight'] = 500 ;
-
- $config['MediaBrowserWindowWidth'] = 780 ;
- $config['MediaBrowserWindowHeight'] = 500 ;
-
- $config['LinkUpload'] = true;
- $config['ImageUpload'] = true;
- $config['FlashUpload'] = true;
- $config['MP3Upload'] = true;
- $config['VideoUpload'] = true;
- $config['MediaUpload'] = true;
- }
- $config['FontFormats'] = 'p;h1;h2;h3;h4;h5';
- $config['EditorAreaStyles'] = 'body { background: #ffffff; }';
- if ((api_get_setting('block_copy_paste_for_students') == 'true')) {
- $config['BlockCopyPaste'] = true;
- }
|