[svn r18430] configure glossary and documents buttons bar

skala
Juan Carlos Raña 16 years ago
parent 349bfa1d30
commit a8703d42bc
  1. 16
      main/document/create_document.php
  2. 16
      main/document/edit_document.php
  3. 7
      main/glossary/index.php
  4. 37
      main/inc/lib/fckeditor/myconfig.js

@ -1,4 +1,4 @@
<?php // $Id: create_document.php 18203 2009-02-03 18:02:16Z ndieschburg $
<?php // $Id: create_document.php 18430 2009-02-11 00:05:53Z herodoto $
/*
==============================================================================
@ -164,9 +164,19 @@ include (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
$nameTools = get_lang('CreateDocument');
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '950';
$fck_attribute['ToolbarSet'] = 'Full';
$fck_attribute['Height'] = '600';
$fck_attribute['Config']['FullPage'] = true;
if(!api_is_allowed_to_edit())
{
$fck_attribute['Config']['UserStatus'] = 'student';
$fck_attribute['ToolbarSet'] = 'Documents_Student';
}
else
{
$fck_attribute['ToolbarSet'] = 'Documents';
}
/*
-----------------------------------------------------------

@ -1,4 +1,4 @@
<?php // $Id: edit_document.php 18203 2009-02-03 18:02:16Z ndieschburg $
<?php // $Id: edit_document.php 18430 2009-02-11 00:05:53Z herodoto $
/*
==============================================================================
Dokeos - elearning and course management software
@ -89,10 +89,19 @@ include_once(api_get_path(LIBRARY_PATH) . 'groupmanager.lib.php');
require_once(api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '950';
$fck_attribute['ToolbarSet'] = 'Full';
$fck_attribute['Height'] = '600';
$fck_attribute['Config']['FullPage'] = true;
if(!api_is_allowed_to_edit())
{
$fck_attribute['Config']['UserStatus'] = 'student';
$fck_attribute['ToolbarSet'] = 'Documents_Student';
}
else
{
$fck_attribute['ToolbarSet'] = 'Documents';
}
/*
@ -616,7 +625,6 @@ if ($owner_id == $_user['user_id'] || api_is_platform_admin() || api_is_allowed_
{
if (empty($readonly) && $readonly==0)
{
$form->addElement('style_submit_button','submit',get_lang('SaveDocument'), 'class="save"');
$_SESSION['showedit']=1;
$form->add_html_editor('texte','',false,true);
}

@ -44,6 +44,13 @@ Display::display_introduction_section(TOOL_GLOSSARY,'left');
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
// Glossary FckEditor setting
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'Glossary';
// action links
echo '<div class="actions">';
if (api_is_allowed_to_edit())

@ -116,6 +116,28 @@ FCKConfig.ToolbarSets["CourseDescription"] = [
['Source']
] ;
FCKConfig.ToolbarSets["Documents"] = [
['NewPage','Templates','Save','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']
] ;
FCKConfig.ToolbarSets["Documents_Student"] = [
['NewPage','Save','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'],
['ShowBlocks']
] ;
FCKConfig.ToolbarSets["ForumLight"] = [
['Bold','Italic','Underline','StrikeThrough']
] ;
@ -142,6 +164,17 @@ FCKConfig.ToolbarSets["Forum_Student"] = [
['ShowBlocks']
] ;
FCKConfig.ToolbarSets["Glossary"] = [
['NewPage','Save','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Link','Unlink','Anchor'],
['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','Rule','SpecialChar','googlemaps'],
['FontName','FontSize'],
['Bold','Italic','Underline','StrikeThrough'],
['Subscript','Superscript','-','JustifyLeft','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
['Source']
] ;
FCKConfig.ToolbarSets["Wiki"] = [
['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Wikilink','Link','Unlink','Anchor'],
@ -376,7 +409,9 @@ FCKConfig.MediaUploadDeniedExtensions = "" ;
// the following "if" block.
if (FCK.AdvancedFileManager)
{
FCKConfig.LinkUpload = false ;
FCKConfig.ImageUpload = false ;
FCKConfig.MP3Upload = false ;
}

Loading…
Cancel
Save