diff --git a/main/admin/settings.php b/main/admin/settings.php index cff6512d7f..016c95332c 100644 --- a/main/admin/settings.php +++ b/main/admin/settings.php @@ -1,4 +1,4 @@ - 'index.php', "name" => get_lang('PlatformAd // setting the name of the tool $tool_name = get_lang('DokeosConfigSettings'); -// setting for templates -$fck_attribute['ToolbarSet'] = "AdminTemplates"; -$fck_attribute['Width'] = '100%'; -$fck_attribute['Height'] = '400'; - // Build the form if (!empty($_GET['category']) and !in_array($_GET['category'], array('Plugins', 'stylesheets', 'Search'))) { @@ -1027,7 +1022,7 @@ function add_edit_template() $form->add_textfield('title', get_lang('Title'), false); // settting the form elements: the content of the template (wysiwyg editor) - $form->addElement('html_editor', 'template_text', get_lang('Text')); + $form->addElement('html_editor', 'template_text', get_lang('Text'), null, array('ToolbarSet' => 'AdminTemplates', 'Width' => '100%', 'Height' => '400')); // settting the form elements: the form to upload an image to be used with the template $form->addElement('file','template_image',get_lang('Image'),''); diff --git a/main/admin/system_announcements.php b/main/admin/system_announcements.php index 951f7d07f5..2b5635af55 100644 --- a/main/admin/system_announcements.php +++ b/main/admin/system_announcements.php @@ -1,4 +1,4 @@ -addElement('select', 'lang',get_lang('Language'),$language_list_with_keys); if (api_get_setting('wcag_anysurfer_public_pages')=='true') { $form->addElement('textarea', 'content', get_lang('Content')); } else { - $form->add_html_editor('content', get_lang('Content')); + $form->add_html_editor('content', get_lang('Content'), true, false, array('ToolbarSet' => 'SystemAnnouncements', 'Width' => '100%', 'Height' => '300')); } $form->add_timewindow('start','end',get_lang('StartTimeWindow'),get_lang('EndTimeWindow')); $form->addElement('checkbox', 'visible_teacher', get_lang('Visible'), get_lang('Teacher')); diff --git a/main/inc/lib/fckeditor/toolbars/admin_templates.php b/main/inc/lib/fckeditor/toolbars/admin_templates.php index 9e050c6737..3522674307 100644 --- a/main/inc/lib/fckeditor/toolbars/admin_templates.php +++ b/main/inc/lib/fckeditor/toolbars/admin_templates.php @@ -44,4 +44,4 @@ $config['ToolbarSets']['Maximized'] = array( // Here new width and height of the editor may be set. // Possible values, examples: 300 , '250' , '100%' , ... //$config['Width'] = '100%'; -//$config['Height'] = '300'; +//$config['Height'] = '400';