Feature #2479 rev. documents tool bars

skala
Juan Carlos Raña 15 years ago
parent f057119a2b
commit be889b4323
  1. 55
      main/inc/lib/fckeditor/toolbars/extended/documents.php
  2. 54
      main/inc/lib/fckeditor/toolbars/extended/documents_student.php

@ -7,37 +7,46 @@
// For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options // 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
//TODO: DocProps, fckeditor_wiris_openFormulaEditor,fckeditor_wiris_openCAS don't run ok here.
// 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. // This is the visible toolbar set when the editor has "normal" size.
$config['ToolbarSets']['Normal'] = array( $config['ToolbarSets']['Normal'] = array(
array('Save','FitWindow','PasteWord','-','Undo','Redo'), array('Save','NewPage','Templates','-','PasteWord'),
array('Link','Unlink','Anchor','Glossary'), array('Undo','Redo'),
array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex','asciimath'), array('Link','Image','flvPlayer','Table','mimetex','asciimath'),
array('Table','SpecialChar'), array('UnorderedList','OrderedList','Rule'),
array('Outdent','Indent','-','TextColor','BGColor','-','OrderedList','UnorderedList','-','Source'), array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
'/', array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('Style','FontFormat','FontName','FontSize'), array('FitWindow')
array('Bold','Italic','Underline'),
array('JustifyLeft','JustifyCenter','JustifyRight')
); );
// This is the visible toolbar set when the editor is maximized. // 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. // If it has not been defined, then the toolbar set for the "normal" size is used.
$config['ToolbarSets']['Maximized'] = array( $config['ToolbarSets']['Maximized'] = array(
array('FitWindow','DocProps','-','Save','NewPage','Preview','-','Templates'), array('Save','NewPage','Templates','-','Preview','Print'),
array('Cut','Copy','Paste','PasteText','PasteWord','-','Print'), array('Cut','Copy','Paste','PasteText','PasteWord'),
array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'), array('Undo','Redo','-','SelectAll','Find','-','RemoveFormat'),
array('Link','Unlink','Anchor','Glossary'), array('Link','Unlink','Anchor','Glossary'),
'/', array('Image','imgmapPopup','flvPlayer','EmbedMovies','YouTube','Flash','MP3','googlemaps','Smiley','SpecialChar','insertHtml','mimetex','asciimath'),
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'), '/',
array('OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'), array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp','-','CreateDiv'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), array('UnorderedList','OrderedList','Rule','-','Outdent','Indent','Blockquote'),
array('Rule','SpecialChar','PageBreak'), array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('mimetex','asciimath','Image','imgmapPopup','Flash','MP3','EmbedMovies','flvPlayer','YouTube','googlemaps','Smiley'), array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor'),
'/', array($VSpellCheck),
array('Style','FontFormat','FontName','FontSize'), array('Style','FontFormat','FontName','FontSize'),
array('TextColor','BGColor'), array('PageBreak','ShowBlocks','Source'),
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp'), array('FitWindow')
array('ShowBlocks','Source')
); );
// Sets whether the toolbar can be collapsed/expanded or not. // Sets whether the toolbar can be collapsed/expanded or not.

@ -7,38 +7,46 @@
// For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options // 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
//TODO: DocProps, fckeditor_wiris_openFormulaEditor,fckeditor_wiris_openCAS don't run ok here.
// 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. // This is the visible toolbar set when the editor has "normal" size.
$config['ToolbarSets']['Normal'] = array( $config['ToolbarSets']['Normal'] = array(
array('Save','FitWindow','PasteWord','-','Undo','Redo'), array('Save','NewPage','Templates','-','PasteWord'),
array('Link','Unlink','Anchor'), array('Undo','Redo'),
array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex','asciimath'), array('Link','Image','flvPlayer','Table','mimetex','asciimath'),
array('Table','SpecialChar'), array('UnorderedList','OrderedList','Rule'),
array('Outdent','Indent','-','TextColor','BGColor','-','OrderedList','UnorderedList'), array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
'/', array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('Style','FontFormat','FontName','FontSize'), array('FitWindow')
array('Bold','Italic','Underline'),
array('JustifyLeft','JustifyCenter','JustifyRight'),
array('ShowBlocks')
); );
// This is the visible toolbar set when the editor is maximized. // 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. // If it has not been defined, then the toolbar set for the "normal" size is used.
$config['ToolbarSets']['Maximized'] = array( $config['ToolbarSets']['Maximized'] = array(
array('FitWindow','DocProps','-','Save','NewPage','Preview','-','Templates'), array('Save','NewPage','Templates','-','Preview','Print'),
array('Cut','Copy','Paste','PasteText','PasteWord'), array('Cut','Copy','Paste','PasteText','PasteWord'),
array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'), array('Undo','Redo','-','SelectAll','Find','-','RemoveFormat'),
array('Link','Unlink','Anchor','Glossary'), array('Link','Unlink','Anchor','Glossary'),
'/', array('Image','imgmapPopup','flvPlayer','EmbedMovies','YouTube','Flash','MP3','googlemaps','Smiley','SpecialChar','insertHtml','mimetex','asciimath'),
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'), '/',
array('OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'), array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp','-','CreateDiv'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), array('UnorderedList','OrderedList','Rule','-','Outdent','Indent','Blockquote'),
array('Rule','SpecialChar','PageBreak'), array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('mimetex','asciimath','Image','imgmapPopup','Flash','MP3','EmbedMovies','flvPlayer','googlemaps','Smiley'), array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor'),
'/', array($VSpellCheck),
array('Style','FontFormat','FontName','FontSize'), array('Style','FontFormat','FontName','FontSize'),
array('TextColor','BGColor'), array('PageBreak','ShowBlocks'),
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp'), array('FitWindow')
array('ShowBlocks')
); );
// Sets whether the toolbar can be collapsed/expanded or not. // Sets whether the toolbar can be collapsed/expanded or not.

Loading…
Cancel
Save