[svn r18447] configure announcements buttons bar

skala
Juan Carlos Raña 16 years ago
parent af161e9c6c
commit 8b32e774aa
  1. 17
      main/announcements/announcements.php
  2. 28
      main/inc/lib/fckeditor/myconfig.js

@ -1,4 +1,4 @@
<?php //$Id: announcements.php 18319 2009-02-07 00:03:42Z herodoto $
<?php //$Id: announcements.php 18447 2009-02-11 20:49:45Z herodoto $
/*
==============================================================================
Dokeos - elearning and course management software
@ -1146,10 +1146,19 @@ if(!empty($error_message))
require_once(api_get_path(LIBRARY_PATH) . "/fckeditor/fckeditor.php");
$oFCKeditor = new FCKeditor('newContent') ;
$oFCKeditor->ToolbarSet = "Announcements";
$oFCKeditor->Height = '250';
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '300';
if(!api_is_allowed_to_edit())
{
$oFCKeditor->ToolbarSet = "Announcements_Student";
}
else
{
$oFCKeditor->ToolbarSet = "Announcements";
}
$oFCKeditor->Value = $content_to_modify;
echo $oFCKeditor->CreateHtml();

@ -50,10 +50,6 @@ FCKConfig.ToolbarSets["Blog"] = [
['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','OrderedList','UnorderedList','Table']
] ;
FCKConfig.ToolbarSets["Announcements"] = [
['Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','OrderedList','UnorderedList','Table']
] ;
FCKConfig.ToolbarSets["Full"] = [
['FitWindow','PasteWord','Link','Unlink','Anchor','-','Image','flvPlayer','Flash','EmbedMovies','MP3','YouTube','Table','Rule','-','Subscript', 'Superscript','-','OrderedList','UnorderedList','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],'/',['FontFormat','Style','FontName','FontSize','Bold','Italic','Underline','StrikeThrough','TextColor', 'BGColor','-','Source']
] ;
@ -123,6 +119,28 @@ FCKConfig.ToolbarSets["Agenda_Student"] = [
['ShowBlocks']
] ;
FCKConfig.ToolbarSets["Announcements"] = [
['NewPage','Preview','FitWindow','-','PasteText','-','Undo','Redo','-','SelectAll','RemoveFormat'],
['Link','Unlink','Anchor'],
['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','Rule','Smiley','SpecialChar'],
['FontName','FontSize'],
['Bold','Italic','Underline','StrikeThrough'],
['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
['Source']
] ;
FCKConfig.ToolbarSets["Announcements_Student"] = [
['NewPage','Preview','FitWindow','-','PasteText','-','Undo','Redo','-','SelectAll','RemoveFormat'],
['Link','Unlink','Anchor'],
['Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','Rule','Smiley','SpecialChar'],
['FontName','FontSize'],
['Bold','Italic','Underline','StrikeThrough'],
['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','TextColor','BGColor'],
['ShowBlocks']
] ;
FCKConfig.ToolbarSets["CourseDescription"] = [
['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Link','Unlink','Anchor'],
@ -460,4 +478,4 @@ if (FCK.AdvancedFileManager)
* Other settings.
*/
FCKConfig.UserStatus = 'teacher' ;
FCKConfig.UserStatus = 'teacher' ;
Loading…
Cancel
Save