From 49aef64c3b36704add71ffe91982a4ee052e5977 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Thu, 5 Feb 2009 20:50:37 +0100 Subject: [PATCH] [svn r18259] FS#2867: FCKEditor: Revision of the editor's settings in the Global agenda tool. --- main/admin/calendar.lib.php | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/main/admin/calendar.lib.php b/main/admin/calendar.lib.php index 305dd1dd62..f1afe73963 100644 --- a/main/admin/calendar.lib.php +++ b/main/admin/calendar.lib.php @@ -1562,32 +1562,12 @@ function show_add_form($id = '') require_once(api_get_path(LIBRARY_PATH) . "/fckeditor/fckeditor.php"); $oFCKeditor = new FCKeditor('content') ; - $oFCKeditor->BasePath = api_get_path(WEB_PATH) . 'main/inc/lib/fckeditor/' ; + + $oFCKeditor->ToolbarSet = 'Agenda'; $oFCKeditor->Height = '175'; $oFCKeditor->Width = '100%'; $oFCKeditor->Value = $content; - if(api_get_setting('advanced_filemanager')=='true') - { - $oFCKeditor->Config['AdvancedFileManager'] = true; - - $oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig_afm.js"; - } - else - { - $oFCKeditor->Config['AdvancedFileManager'] = false; - - $oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js"; - } - - $oFCKeditor->ToolbarSet = 'Agenda'; - - $TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE); - $sql="SELECT isocode FROM ".$TBL_LANGUAGES." WHERE english_name='".$_SESSION['_user']['language']."'"; - $result_sql=api_sql_query($sql); - $isocode_language=Database::result($result_sql,0,0); - $oFCKeditor->Config['DefaultLanguage'] = $isocode_language; - $return = $oFCKeditor->CreateHtml(); echo $return;