[svn r22099] FS#2867 - The online editor: Merging two same toolbars 'EditHomePage' and 'LinksHomePage' into a new toolbar 'PlatformHomePage'.

skala
Ivan Tcholakov 17 years ago
parent ccf7bd67d1
commit 19aa744220
  1. 6
      main/admin/configure_homepage.php
  2. 48
      main/inc/lib/fckeditor/toolbars/links_home_page.php
  3. 2
      main/inc/lib/fckeditor/toolbars/platform_home_page.php

@ -1,4 +1,4 @@
<?php // $Id: configure_homepage.php 22018 2009-07-13 05:32:58Z ivantcholakov $ <?php // $Id: configure_homepage.php 22099 2009-07-15 10:49:42Z ivantcholakov $
/* /*
===== ========================================================================= ===== =========================================================================
Dokeos - elearning and course management software Dokeos - elearning and course management software
@ -691,7 +691,7 @@ switch($action){
$form->addElement('html', WCAG_Rendering::create_xhtml(isset($_POST['link_html'])?$_POST['link_html']:$link_html)); $form->addElement('html', WCAG_Rendering::create_xhtml(isset($_POST['link_html'])?$_POST['link_html']:$link_html));
} else { } else {
$default['link_html'] = isset($_POST['link_html']) ? $_POST['link_html'] : $link_html; $default['link_html'] = isset($_POST['link_html']) ? $_POST['link_html'] : $link_html;
$form->add_html_editor('link_html', '', true, false, array('ToolbarSet' => 'LinksHomePage', 'Width' => '100%', 'Height' => '400')); $form->add_html_editor('link_html', '', true, false, array('ToolbarSet' => 'PlatformHomePage', 'Width' => '100%', 'Height' => '400'));
} }
$form->addElement('html', '</td></tr><tr><td>'); $form->addElement('html', '</td></tr><tr><td>');
$form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"'); $form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');
@ -755,7 +755,7 @@ switch($action){
$form->addElement('html', $html); $form->addElement('html', $html);
} else { } else {
$default[$name] = str_replace('{rel_path}', api_get_path(REL_PATH), $open); $default[$name] = str_replace('{rel_path}', api_get_path(REL_PATH), $open);
$form->add_html_editor($name, '', true, false, array('ToolbarSet' => 'EditHomePage', 'Width' => '100%', 'Height' => '400')); $form->add_html_editor($name, '', true, false, array('ToolbarSet' => 'PlatformHomePage', 'Width' => '100%', 'Height' => '400'));
} }
$form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"'); $form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');
$form->setDefaults($default); $form->setDefaults($default);

@ -1,48 +0,0 @@
<?php
// Admin tools
// Insert or Edit a page link in the platform home page
// 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('NewPage','Templates','Save','Print','PageBreak','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll','-','Find'),
array('Link','Unlink','Anchor'),
array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex'),
array('Table','Smiley','SpecialChar','googlemaps'),
'/',
array('FontFormat','FontName','FontSize'),
array('Bold','Italic','Underline'),
array('JustifyLeft','JustifyCenter','JustifyRight','-','OrderedList','UnorderedList','-','Outdent','Indent','-','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'] = true;
//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'] = '400';

@ -1,6 +1,6 @@
<?php <?php
// Admin tools // Admin tools
// Edit platform home page // Platform home page
// 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
Loading…
Cancel
Save