[svn r18087] ajaxfilemanager can now operate on announcements

skala
Juan Carlos Raña 16 years ago
parent f88b820213
commit 6d7087bfda
  1. 14
      main/announcements/announcements.php

@ -1,4 +1,4 @@
<?php //$Id: announcements.php 17983 2009-01-24 01:13:39Z cfasanando $
<?php //$Id: announcements.php 18087 2009-01-29 22:36:20Z herodoto $
/*
==============================================================================
Dokeos - elearning and course management software
@ -1152,7 +1152,15 @@ if(!empty($error_message))
$oFCKeditor->Height = '250';
$oFCKeditor->Width = '100%';
$oFCKeditor->Value = $content_to_modify;
$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js";
if(api_get_setting('advanced_filemanager'))
{
$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);
@ -1161,7 +1169,7 @@ if(!empty($error_message))
$isocode_language=Database::result($result_sql,0,0);
$oFCKeditor->Config['DefaultLanguage'] = $isocode_language;
$oFCKeditor->Config['AdvancedFileManager'] = api_get_setting('advanced_filemanager') == 'true' ? true : false;
echo $oFCKeditor->CreateHtml();

Loading…
Cancel
Save