From e28468a26609644500c04931d2ebc01a8c2852f1 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Thu, 5 Feb 2009 20:12:08 +0100 Subject: [PATCH] [svn r18258] FS#2867: FCKEditor: Revision of the editor's settings in the Announcements tool. --- main/announcements/announcements.php | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/main/announcements/announcements.php b/main/announcements/announcements.php index 0f83615f82..43cd9ea601 100644 --- a/main/announcements/announcements.php +++ b/main/announcements/announcements.php @@ -1,4 +1,4 @@ -BasePath = api_get_path(WEB_PATH) . 'main/inc/lib/fckeditor/' ; + + $oFCKeditor->ToolbarSet = "Announcements"; $oFCKeditor->Height = '250'; $oFCKeditor->Width = '100%'; $oFCKeditor->Value = $content_to_modify; - if (api_get_setting('advanced_filemanager') == 'true') - { - $oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig_afm.js"; - } - else - { - $oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js"; - } - - $oFCKeditor->ToolbarSet = "Announcements"; - - $TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE); - $sql="SELECT isocode FROM ".$TBL_LANGUAGES." WHERE english_name='".$_SESSION["_course"]["language"]."'"; - $result_sql=api_sql_query($sql, __FILE__, __LINE__); - $isocode_language=Database::result($result_sql,0,0); - $oFCKeditor->Config['DefaultLanguage'] = $isocode_language; - - echo $oFCKeditor->CreateHtml(); echo'
';