#2479 fix work button bar

skala
Juan Carlos Raña 14 years ago
parent b320f93974
commit ddc4c37854
  1. 50
      main/inc/lib/fckeditor/toolbars/default/work.php
  2. 71
      main/inc/lib/fckeditor/toolbars/extended/work.php
  3. 4
      main/lang/spanish/trad4all.inc.php
  4. 8
      main/work/work.lib.php
  5. 6
      main/work/work.php

@ -0,0 +1,50 @@
<?php
// Chamilo LMS
// See license terms in chamilo/documentation/license.txt
// Work tool
// For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
// This is the visible toolbar set when the editor has "normal" size.
$config['ToolbarSets']['Normal'] = array(
array('FitWindow','-','PasteWord','-','Undo','Redo'),
array('Link','Unlink','Anchor'),
array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex'),
array('Table','Smiley'),
'/',
array('FontName','FontSize'),
array('Bold','Italic','Underline'),
array('JustifyLeft','JustifyCenter','-','OrderedList','UnorderedList','-','TextColor','BGColor'),
array('Source')
);
// This is the visible toolbar set when the editor is maximized.
// If it has not been defined, then the toolbar set for the "normal" size is used.
/*
$config['ToolbarSets']['Maximized'] = array(
array('FitWindow','-') // ...
);
*/
// Sets whether the toolbar can be collapsed/expanded or not.
// Possible values: true , false
//$config['ToolbarCanCollapse'] = true;
// Sets how the editor's toolbar should start - expanded or collapsed.
// Possible values: true , false
$config['ToolbarStartExpanded'] = false;
//This option sets the location of the toolbar.
// Possible values: 'In' , 'None' , 'Out:[TargetId]' , 'Out:[TargetWindow]([TargetId])'
//$config['ToolbarLocation'] = 'In';
// A setting for blocking copy/paste functions of the editor.
// This setting activates on leaners only. For users with other statuses there is no blocking copy/paste.
// Possible values: true , false
//$config['BlockCopyPaste'] = false;
// Here new width and height of the editor may be set.
// Possible values, examples: 300 , '250' , '100%' , ...
//$config['Width'] = '100%';
//$config['Height'] = '130';

@ -0,0 +1,71 @@
<?php
// Chamilo LMS
// See license terms in chamilo/documentation/license.txt
// Work tool
// For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
//NOTE: Does not include Replace because it is redundant, being in the same tab to Find. Usability: doenst show save buttom
//TODO: DocProps does not run ok here. Also 'asciisvg' buttom (their presence means that not all forms can unfold and refold)
// Hide/show SpellCheck buttom
if ((api_get_setting('allow_spellcheck') == 'true')) {
$VSpellCheck='SpellCheck';
}
else{
$VSpellCheck='';
}
// This is the visible toolbar set when the editor has "normal" size.
$config['ToolbarSets']['Normal'] = array(
array('NewPage','Templates','-','PasteWord'),
array('Undo','Redo'),
array('Link','Image','flvPlayer','Flash','MP3','TableOC','mimetex','asciimath'),
array('JustifyLeft','JustifyCenter','JustifyFull'),
array('FontFormat','FontName','Bold','Italic','TextColor','BGColor'),
array('FitWindow')
);
// This is the visible toolbar set when the editor is maximized.
// If it has not been defined, then the toolbar set for the "normal" size is used.
$config['ToolbarSets']['Maximized'] = array(
array('NewPage','Templates','-','Preview','Print'),
array('Cut','Copy','Paste','PasteText','PasteWord'),
array('Undo','Redo','-','SelectAll','Find','-','RemoveFormat'),
array('Link','Unlink','Anchor','Glossary'),
array('Image','imgmapPopup','flvPlayer','EmbedMovies','YouTube','Flash','MP3','googlemaps','Smiley','SpecialChar','insertHtml','mimetex','asciimath','fckeditor_wiris_openFormulaEditor','fckeditor_wiris_openCAS'),
'/',
array('TableOC','Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp','-','CreateDiv'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent','Blockquote'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor'),
array($VSpellCheck),
array('Style','FontFormat','FontName','FontSize'),
array('PageBreak','ShowBlocks','Source'),
array('FitWindow')
);
// Sets whether the toolbar can be collapsed/expanded or not.
// Possible values: true , false
//$config['ToolbarCanCollapse'] = true;
// Sets how the editor's toolbar should start - expanded or collapsed.
// Possible values: true , false
$config['ToolbarStartExpanded'] = false;
//This option sets the location of the toolbar.
// Possible values: 'In' , 'None' , 'Out:[TargetId]' , 'Out:[TargetWindow]([TargetId])'
//$config['ToolbarLocation'] = 'In';
// A setting for blocking copy/paste functions of the editor.
// This setting activates on leaners only. For users with other statuses there is no blocking copy/paste.
// Possible values: true , false
//$config['BlockCopyPaste'] = false;
// Here new width and height of the editor may be set.
// Possible values, examples: 300 , '250' , '100%' , ...
//$config['Width'] = '100%';
//$config['Height'] = '130';

@ -1021,10 +1021,10 @@ $Clean = "Limpiar";
$MailNotifyInvitation = "Notificación por correo de nuevas invitaciones recibidas";
$MailNotifyMessage = "Notificación por correo de nuevo mensaje personal";
$MailNotifyGroupMessage = "Notificación por correo de nuevos mensajes recibidos en grupos";
$ClickToSelectOrDragAndDropMultipleFilesOnTheUploadField = "Haga clic en la caja abajo para seleccionar ficheros desde su computadora (puede usar CTRL + clic para seleccionar varios ficheros a la vez), o haga arrastrar y soltar de algunos ficheros de su escritorio directamente sobre la caja. El sistema se encargará del resto!";
$ClickToSelectOrDragAndDropMultipleFilesOnTheUploadField = "Para subir uno o más ficheros, tan sólo tendrá que arrastrarlos desde el escritorio de su ordenador hasta la caja inferior, y el sistema hará el resto. Alternativamente, también podrá hacer clic en la caja inferior y seleccionar los ficheros que desee subir (puede usar CTRL + clic para seleccionar varios a un tiempo).";
$Simple = "Simple";
$Multiple = "Múltiple";
$UploadFiles = "Arrastrar y soltar ficheros aquí para subirlos";
$UploadFiles = "Arrastre aquí los ficheros que desea subir";
$SupportedFormatsForIndex = "Formatos disponibles para la indexación";
$Installed = "Instalado";
$NotInstalled = "No instalado";

@ -389,10 +389,10 @@ function display_student_publications_list($work_dir, $sub_course_dir, $currentC
$table_header[] = array(get_lang('Qualification'), true);
}
$table_header[] = array(get_lang('Date'), true);
$table_header[] = array(get_lang('Date'), true, 'style="width:70px"');
if ($origin != 'learnpath') {
$table_header[] = array(get_lang('Actions'), false);
$table_header[] = array(get_lang('Actions'), false, 'style="width:40px"');
$table_header[] = array('RealDate', true);
}
@ -488,8 +488,8 @@ function display_student_publications_list($work_dir, $sub_course_dir, $currentC
$defaults = array('my_group[dir_name]' => html_entity_decode($dir), 'description' => api_html_entity_decode($row['description']));
//$form_folder-> addElement('textarea', 'description', get_lang('Description'), array('rows' => 5, 'cols' => 50));
$form_folder->add_html_editor('description', get_lang('Description'), false, false, array('ToolbarSet' => 'profile', 'Width' => '100%', 'Height' => '200'));
$form_folder->add_html_editor('description', get_lang('Description'), false, false, array('ToolbarSet' => 'work', 'Width' => '100%', 'Height' => '200'));
$qualification_input[] = FormValidator :: createElement('text','qualification');
$form_folder -> addGroup($qualification_input, 'qualification', get_lang('QualificationNumeric'), 'size="10"');

@ -1381,9 +1381,9 @@ if ($is_course_member) {
<div class="formw">';
$oFCKeditor = new FCKeditor('description') ;
$oFCKeditor->ToolbarSet = 'profile';
$oFCKeditor->Width = '80%';
$oFCKeditor->Height = '130';
$oFCKeditor->ToolbarSet = 'work';
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '200';
$oFCKeditor->Value = $message;
$return = $oFCKeditor->CreateHtml();
$new_folder_text .= $return;

Loading…
Cancel
Save