diff --git a/main/inc/lib/fckeditor/toolbars/extended/documents.php b/main/inc/lib/fckeditor/toolbars/extended/documents.php index d5aa8603b0..67363273b3 100755 --- a/main/inc/lib/fckeditor/toolbars/extended/documents.php +++ b/main/inc/lib/fckeditor/toolbars/extended/documents.php @@ -23,7 +23,7 @@ $config['ToolbarSets']['Normal'] = array( array('Save','NewPage','Templates','-','PasteWord'), array('Undo','Redo'), array('Link','Image','flvPlayer','Table','mimetex','asciimath'), - array('UnorderedList','OrderedList','Rule'), + array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'), array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'), array('FitWindow') diff --git a/main/inc/lib/fckeditor/toolbars/extended/documents_student.php b/main/inc/lib/fckeditor/toolbars/extended/documents_student.php index 4fda9677c2..4a3c97b143 100755 --- a/main/inc/lib/fckeditor/toolbars/extended/documents_student.php +++ b/main/inc/lib/fckeditor/toolbars/extended/documents_student.php @@ -9,6 +9,7 @@ //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. +//NOTE: ONLY FOR TEACHERS: source, insert html // Hide/show SpellCheck buttom if ((api_get_setting('allow_spellcheck') == 'true')) { @@ -23,7 +24,7 @@ $config['ToolbarSets']['Normal'] = array( array('Save','NewPage','Templates','-','PasteWord'), array('Undo','Redo'), array('Link','Image','flvPlayer','Table','mimetex','asciimath'), - array('UnorderedList','OrderedList','Rule'), + array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'), array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'), array('FitWindow') diff --git a/main/inc/lib/fckeditor/toolbars/extended/introduction.php b/main/inc/lib/fckeditor/toolbars/extended/introduction.php index e37c80df30..a5d60c74fe 100755 --- a/main/inc/lib/fckeditor/toolbars/extended/introduction.php +++ b/main/inc/lib/fckeditor/toolbars/extended/introduction.php @@ -23,7 +23,7 @@ $config['ToolbarSets']['Normal'] = array( array('Save','NewPage','Templates','-','PasteWord'), array('Undo','Redo'), array('Link','Image','flvPlayer','Table','mimetex'), - array('UnorderedList','OrderedList','Rule'), + array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'), array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'), array('FitWindow') diff --git a/main/inc/lib/fckeditor/toolbars/extended/notebook.php b/main/inc/lib/fckeditor/toolbars/extended/notebook.php index f6299b24a6..249105c805 100755 --- a/main/inc/lib/fckeditor/toolbars/extended/notebook.php +++ b/main/inc/lib/fckeditor/toolbars/extended/notebook.php @@ -7,37 +7,46 @@ // 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, ASCIIMath 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. $config['ToolbarSets']['Normal'] = array( - array('Save','FitWindow','-','PasteWord','-','Undo','Redo'), - array('Link','Unlink','Anchor'), - array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex'), - array('Table','SpecialChar'), - array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'), - '/', - array('Style','FontFormat','FontName','FontSize'), - array('Bold','Italic','Underline'), - array('JustifyLeft','JustifyCenter','JustifyRight') + array('Save','NewPage','Templates','-','PasteWord'), + array('Undo','Redo'), + array('Link','Image','flvPlayer','Table','mimetex'), + array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'), + array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), + array('FontFormat','FontName','FontSize','Bold','Italic','Underline','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('FitWindow','Save','NewPage','Preview'), - array('Cut','Copy','Paste','PasteText','PasteWord','-','Print'), - array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'), - array('Link','Unlink','Anchor'), - '/', - array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'), - array('OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'), - array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), - array('Rule','SpecialChar'), - array('mimetex','Image','imgmapPopup','Flash','MP3','EmbedMovies','flvPlayer','YouTube','googlemaps','Smiley'), - '/', - array('Style','FontFormat','FontName','FontSize'), - array('TextColor','BGColor'), - array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp'), - array('ShowBlocks','Source') + array('Save','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','fckeditor_wiris_openFormulaEditor','fckeditor_wiris_openCAS'), +'/', + array('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. diff --git a/main/inc/lib/fckeditor/toolbars/extended/notebook_student.php b/main/inc/lib/fckeditor/toolbars/extended/notebook_student.php index 0207567f42..a3da1d5046 100755 --- a/main/inc/lib/fckeditor/toolbars/extended/notebook_student.php +++ b/main/inc/lib/fckeditor/toolbars/extended/notebook_student.php @@ -7,40 +7,48 @@ // 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, ASCIIMath don't run ok here. +//NOTE: ONLY FOR TEACHERS: source, insert html + +// 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('Save','FitWindow','-','PasteWord','-','Undo','Redo'), - array('Link','Unlink','Anchor'), - array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex'), - array('Table','SpecialChar'), - array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'), - '/', - array('Style','FontFormat','FontName','FontSize'), - array('Bold','Italic','Underline'), - array('JustifyLeft','JustifyCenter','JustifyRight'), - array('ShowBlocks') + array('Save','NewPage','Templates','-','PasteWord'), + array('Undo','Redo'), + array('Link','Image','flvPlayer','Table','mimetex'), + array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'), + array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), + array('FontFormat','FontName','FontSize','Bold','Italic','Underline','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('FitWindow','Save','NewPage','Preview'), + array('Save','NewPage','Templates','-','Preview','Print'), array('Cut','Copy','Paste','PasteText','PasteWord'), - array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'), - array('Link','Unlink','Anchor'), - '/', - array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'), - array('OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'), - array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), - array('Rule','SpecialChar'), - array('mimetex','Image','imgmapPopup','Flash','MP3','EmbedMovies','flvPlayer','googlemaps','Smiley'), - '/', - array('Style','FontFormat','FontName','FontSize'), - array('TextColor','BGColor'), - array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp'), - array('ShowBlocks') + array('Undo','Redo','-','SelectAll','Find','-','RemoveFormat'), + array('Link','Unlink','Anchor','Glossary'), + array('Image','imgmapPopup','flvPlayer','EmbedMovies','YouTube','Flash','MP3','googlemaps','Smiley','SpecialChar','mimetex','fckeditor_wiris_openFormulaEditor','fckeditor_wiris_openCAS'), +'/', + array('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'), + array('FitWindow') + ); - // Sets whether the toolbar can be collapsed/expanded or not. // Possible values: true , false //$config['ToolbarCanCollapse'] = true; diff --git a/main/inc/lib/fckeditor/toolbars/extended/training_description.php b/main/inc/lib/fckeditor/toolbars/extended/training_description.php index e426266748..2420105356 100755 --- a/main/inc/lib/fckeditor/toolbars/extended/training_description.php +++ b/main/inc/lib/fckeditor/toolbars/extended/training_description.php @@ -23,7 +23,7 @@ $config['ToolbarSets']['Normal'] = array( array('Save','NewPage','Templates','-','PasteWord'), array('Undo','Redo'), array('Link','Image','flvPlayer','Table','mimetex'), - array('UnorderedList','OrderedList','Rule'), + array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'), array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'), array('FitWindow') diff --git a/main/inc/lib/fckeditor/toolbars/extended/wiki.php b/main/inc/lib/fckeditor/toolbars/extended/wiki.php index 3d27c2057f..8f77a0e178 100755 --- a/main/inc/lib/fckeditor/toolbars/extended/wiki.php +++ b/main/inc/lib/fckeditor/toolbars/extended/wiki.php @@ -24,7 +24,7 @@ $config['ToolbarSets']['Normal'] = array( array('Save','NewPage','Templates','-','PasteText'), array('Undo','Redo'), array('Wikilink','Link','Image','flvPlayer','Table','mimetex'), - array('UnorderedList','OrderedList','Rule'), + array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'), array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'), array('FitWindow') diff --git a/main/inc/lib/fckeditor/toolbars/extended/wiki_student.php b/main/inc/lib/fckeditor/toolbars/extended/wiki_student.php index e7077954c3..0811d14633 100755 --- a/main/inc/lib/fckeditor/toolbars/extended/wiki_student.php +++ b/main/inc/lib/fckeditor/toolbars/extended/wiki_student.php @@ -25,7 +25,7 @@ $config['ToolbarSets']['Normal'] = array( array('Save','NewPage','Templates','-','PasteText'), array('Undo','Redo'), array('Wikilink','Link','Image','flvPlayer','Table','mimetex'), - array('UnorderedList','OrderedList','Rule'), + array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'), array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'), array('FitWindow') diff --git a/main/inc/lib/fckeditor/toolbars/extended/wiki_task.php b/main/inc/lib/fckeditor/toolbars/extended/wiki_task.php index dd84970cf3..9e513783e9 100755 --- a/main/inc/lib/fckeditor/toolbars/extended/wiki_task.php +++ b/main/inc/lib/fckeditor/toolbars/extended/wiki_task.php @@ -24,7 +24,7 @@ $config['ToolbarSets']['Normal'] = array( array('NewPage','Templates','-','PasteText'), array('Undo','Redo'), array('Link','Image','flvPlayer','Table','mimetex'), - array('UnorderedList','OrderedList','Rule'), + array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'), array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'), array('FontFormat','FontName','Bold','Italic','Underline','TextColor','BGColor'), array('FitWindow')