diff --git a/main/admin/configure_homepage.php b/main/admin/configure_homepage.php index d39d6aa69f..b5b245b087 100644 --- a/main/admin/configure_homepage.php +++ b/main/admin/configure_homepage.php @@ -1,4 +1,4 @@ -addElement('html', '
| '); - $form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"'); $form->addElement('html', ' |
| '); if (api_get_setting('wcag_anysurfer_public_pages')=='true') { @@ -771,7 +770,7 @@ switch($action){ Display::display_normal_message($errorMsg); //main API } - $fck_attribute['ToolbarSet'] = "Full"; + $fck_attribute['ToolbarSet'] = "EditHomePage"; $fck_attribute['Width'] = '100%'; $fck_attribute['Height'] = '400'; @@ -783,7 +782,7 @@ switch($action){ $renderer->setElementTemplate(' |
| {element} |
| '.get_lang('ChooseNewsLanguage').' : '; diff --git a/main/inc/lib/fckeditor/myconfig.js b/main/inc/lib/fckeditor/myconfig.js index b1451138af..7a40893734 100644 --- a/main/inc/lib/fckeditor/myconfig.js +++ b/main/inc/lib/fckeditor/myconfig.js @@ -35,8 +35,37 @@ FCKConfig.ToolbarSets["Middle"] = [ FCKConfig.ToolbarSets["Small"] = [ ['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','OrderedList','UnorderedList','Table'] +] ;//used by test ? +//// + +///// admin tools ///// + +//Edit platform home page +FCKConfig.ToolbarSets["EditHomePage"] = [ + ['NewPage','Templates','Save','Print','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'], + ['Link','Unlink','Anchor'], + ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'], + ['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'], + ['FontFormat','FontName','FontSize'], + ['Bold','Italic','Underline','StrikeThrough'], + ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'], + ['Source'] +] ; + +//Insert or Edit a page link in platform home page +FCKConfig.ToolbarSets["LinksHomePage"] = [ + ['NewPage','Templates','Save','Print','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'], + ['Link','Unlink','Anchor'], + ['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'], + ['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'], + ['FontFormat','FontName','FontSize'], + ['Bold','Italic','Underline','StrikeThrough'], + ['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'], + ['Source'] ] ; +///// users tools ///// + FCKConfig.ToolbarSets["Profil"] = [ ['FitWindow','PasteWord','Undo','Redo'], ['Link','Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','Table','googlemaps'], @@ -49,6 +78,8 @@ FCKConfig.ToolbarSets["Messages"] = [ ['Bold','Italic','Underline','OrderedList','UnorderedList','TextColor','-','Source'] ] ; +///// course tools ///// + //Course introduction FCKConfig.ToolbarSets["Introduction"] = [ ['NewPage','Templates','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'], |