From 900cdaac43338187f1611049955975b8730b5cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Fri, 13 Feb 2009 21:03:34 +0100 Subject: [PATCH] [svn r18497] config global agenda buttons bar --- main/admin/calendar.lib.php | 4 ++-- main/admin/calendar.php | 8 ++++---- main/inc/lib/fckeditor/myconfig.js | 12 ++++++++++++ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/main/admin/calendar.lib.php b/main/admin/calendar.lib.php index 667484937a..440ec85ac5 100644 --- a/main/admin/calendar.lib.php +++ b/main/admin/calendar.lib.php @@ -1563,9 +1563,9 @@ function show_add_form($id = '') $oFCKeditor = new FCKeditor('content') ; - $oFCKeditor->ToolbarSet = 'Agenda'; - $oFCKeditor->Height = '175'; + $oFCKeditor->ToolbarSet = 'GlobalAgenda'; $oFCKeditor->Width = '100%'; + $oFCKeditor->Height = '175'; $oFCKeditor->Value = $content; $return = $oFCKeditor->CreateHtml(); diff --git a/main/admin/calendar.php b/main/admin/calendar.php index 0a367a8412..2d7765a3ad 100644 --- a/main/admin/calendar.php +++ b/main/admin/calendar.php @@ -256,10 +256,10 @@ if (empty($_GET['origin']) or $_GET['origin']!='learnpath') echo ' '; } - -$fck_attribute['Width'] = '600'; -$fck_attribute['Height'] = '400'; -$fck_attribute['ToolbarSet'] = 'Middle'; +//TODO: check for delete this code +//$fck_attribute['Width'] = '600'; +//$fck_attribute['Height'] = '400'; +//$fck_attribute['ToolbarSet'] = 'Middle'; // THE RIGHT PART diff --git a/main/inc/lib/fckeditor/myconfig.js b/main/inc/lib/fckeditor/myconfig.js index 8a67c131ef..f316cff60d 100644 --- a/main/inc/lib/fckeditor/myconfig.js +++ b/main/inc/lib/fckeditor/myconfig.js @@ -76,6 +76,18 @@ FCKConfig.ToolbarSets["SystemAnnouncements"] = [ ['Source'] ] ; +//Global Agenda +FCKConfig.ToolbarSets["GlobalAgenda"] = [ + ['FitWindow','-','PasteWord','-','Undo','Redo','RemoveFormat'], + ['Link','Unlink'], + ['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'], + ['Table','Rule','SpecialChar','googlemaps'], + ['FontName','FontSize'], + ['Bold','Italic','Underline','StrikeThrough'], + ['OrderedList','UnorderedList','-','TextColor','BGColor'], + ['Source'] +] ; + ///// users tools ///// FCKConfig.ToolbarSets["Profil"] = [