[svn r22206] FS#2867 - The online editor: Corrections in the php-configuration settings for loading the glossary plugin.

skala
Ivan Tcholakov 17 years ago
parent 258acfea64
commit 3dcbe1aa4b
  1. 4
      main/inc/lib/fckeditor/myconfig.php
  2. 22
      main/inc/lib/fckeditor/toolbars/documents.php

@ -84,8 +84,10 @@ $config['LoadPlugin'][] = 'tablecommands';
// audio: Adds a dialog for inserting audio files (.mp3).
$config['LoadPlugin'][] = 'audio';
// glossary: this plugin add a term from glossary tool in dokeos
// glossary: this plugin add a term from glossary tool in Dokeos.
if (api_get_setting('show_glossary_in_documents') == 'ismanual') {
$config['LoadPlugin'][] = 'glossary';
}
// MP3 : This is the old plugin for inserting audio files. Probably this plugin will be removed at the next release.
// If you wish to use it, disable the "audio" plugin first.

@ -5,25 +5,9 @@
// 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.
if (api_get_setting('show_glossary_in_documents') == 'ismanual') {
$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('Outdent','Indent','-','TextColor','BGColor','-','OrderedList','UnorderedList','-','Source'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('Bold','Italic','Underline'),
array('JustifyLeft','JustifyCenter','JustifyRight'),
array('Glossary')
);
} else {
$config['ToolbarSets']['Normal'] = array(
array('Save','FitWindow','PasteWord','-','Undo','Redo'),
array('Link','Unlink','Anchor'),
array('Link','Unlink','Anchor','Glossary'),
array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex'),
array('Table','SpecialChar'),
array('Outdent','Indent','-','TextColor','BGColor','-','OrderedList','UnorderedList','-','Source'),
@ -33,10 +17,6 @@ $config['ToolbarSets']['Normal'] = array(
array('JustifyLeft','JustifyCenter','JustifyRight')
);
}
// 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.
/*

Loading…
Cancel
Save