From b2f4413d90f7906110b3ae90f9faed1fa824b787 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Sun, 1 Feb 2009 12:56:07 +0100 Subject: [PATCH] [svn r18115] FS#2867 - Introduction sections, special cases for settings for the FCKEditor. Adding comments. --- main/course_home/course_home.php | 5 ++--- main/exercice/export/exercise_import.php | 2 +- main/inc/lib/search/search_widget.php | 1 + main/newscorm/document.php | 1 + main/newscorm/lp_list.php | 4 +++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/main/course_home/course_home.php b/main/course_home/course_home.php index 671c4ee6c1..9fc4865cd1 100644 --- a/main/course_home/course_home.php +++ b/main/course_home/course_home.php @@ -1,4 +1,4 @@ -'.get_lang('Search').''; // introduction section + // TODO: Settings for the FCKEditor to be added for the introduction section. if (api_get_course_id() !== -1) if (!empty($_SESSION['_gid'])) { Display::display_introduction_section(TOOL_SEARCH.$_SESSION['_gid'],'left'); diff --git a/main/newscorm/document.php b/main/newscorm/document.php index aa13dc57d5..5d510b5d62 100644 --- a/main/newscorm/document.php +++ b/main/newscorm/document.php @@ -197,6 +197,7 @@ $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '400'; $fck_attribute['ToolbarSet'] = 'Full'; +// TODO: These settings to be checked when it is possible. $fck_attribute['Config']['InDocument'] = false; $fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/'; $fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_path().'/document/'; diff --git a/main/newscorm/lp_list.php b/main/newscorm/lp_list.php index c3adda5cea..b50fdb266e 100644 --- a/main/newscorm/lp_list.php +++ b/main/newscorm/lp_list.php @@ -92,7 +92,9 @@ $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '400'; $fck_attribute['ToolbarSet'] = 'Full'; -$fck_attribute['Config']['InDocument'] = false; +// These settings should stay here. +// TODO: Here a calculation mechanism has to be added in order the editor to work +// properly with documents that are not at the root of the repository. $fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/'; $fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_path().'/document/'; $fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/';