[svn r18440] configure agenda buttons bar

skala
Juan Carlos Raña 16 years ago
parent 8db6cf41d8
commit 3233dae06e
  1. 15
      main/calendar/agenda.inc.php
  2. 9
      main/calendar/agenda.php
  3. 26
      main/inc/lib/fckeditor/myconfig.js

@ -1,4 +1,4 @@
<?php //$Id: agenda.inc.php 18407 2009-02-10 16:03:50Z cfasanando $
<?php //$Id: agenda.inc.php 18440 2009-02-11 18:39:40Z herodoto $
/*
==============================================================================
@ -2802,9 +2802,18 @@ function show_add_form($id = '')
$oFCKeditor = new FCKeditor('content') ;
$oFCKeditor->ToolbarSet = 'Agenda';
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '175';
$oFCKeditor->Height = '200';
if(!api_is_allowed_to_edit())
{
$oFCKeditor->ToolbarSet = 'Agenda_Student';
}
else
{
$oFCKeditor->ToolbarSet = 'Agenda';
}
$oFCKeditor->Value = $content;
$return = $oFCKeditor->CreateHtml();

@ -1,4 +1,4 @@
<?php //$Id: agenda.php 18319 2009-02-07 00:03:42Z herodoto $
<?php //$Id: agenda.php 18440 2009-02-11 18:39:40Z herodoto $
/*
==============================================================================
Dokeos - elearning and course management software
@ -299,10 +299,7 @@ if (empty($_GET['origin']) or $_GET['origin']!='learnpath')
echo '<td width="20" background="../img/verticalruler.gif">&nbsp;</td>';
}
$fck_attribute['Width'] = '600';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'Middle';
//TODO: meet this fckeditor code and agenda.inc.php fckeditor code
$fck_attribute['Config']['CreateDocumentDir'] = api_get_path('WEB_COURSE_PATH').$_course['path'].'/document/';
$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').$_course['path'].'/document/';
@ -312,7 +309,7 @@ if(isset($_SESSION['_course']) && $_SESSION['_course']['path']!='')
}
else
{
$upload_path = api_get_path(REL_PATH).'main/default_course_document/';
$upload_path = api_get_path(REL_PATH).'main/default_course_document/'; //TODO: check if this is correct or better main/upload/num_user/my_files
}
// THE RIGHT PART

@ -42,10 +42,6 @@ FCKConfig.ToolbarSets["Middle"] = [
['FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image','Flash','Source']
] ;
FCKConfig.ToolbarSets["Agenda"] = [
['FontSize','Bold','Italic','Underline','StrikeThrough','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image']
] ;
FCKConfig.ToolbarSets["Small"] = [
['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Flash','OrderedList','UnorderedList','Table']
] ;
@ -105,6 +101,28 @@ FCKConfig.ToolbarSets["Introduction"] = [
['Source']
] ;
FCKConfig.ToolbarSets["Agenda"] = [
['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']
] ;
FCKConfig.ToolbarSets["Agenda_Student"] = [
['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'],
['ShowBlocks']
] ;
FCKConfig.ToolbarSets["CourseDescription"] = [
['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Link','Unlink','Anchor'],

Loading…
Cancel
Save