[svn r10485] second update of the fckeditor style (clean useless buttons) in :

- documents
- learning paths
skala
Eric Marguin 19 years ago
parent 72c0f8c72f
commit 7a33360788
  1. 7
      main/document/create_document.php
  2. 6
      main/document/edit_document.php
  3. 7
      main/inc/lib/fckeditor/myconfig.js
  4. 2
      main/newscorm/learnpath.class.php

@ -1,5 +1,5 @@
<?php
// $Id: create_document.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: create_document.php 10485 2006-12-13 15:52:15Z elixir_inter $
/*
==============================================================================
Dokeos - elearning and course management software
@ -51,6 +51,11 @@ include (api_get_path(LIBRARY_PATH).'groupmanager.lib.php');
include (api_get_path(LIBRARY_PATH).'events.lib.inc.php');
include (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
$nameTools = get_lang('CreateDocument');
$fck_attribute['Width'] = '800';
$fck_attribute['Height'] = '450';
$fck_attribute['ToolbarSet'] = 'Full';
/*
-----------------------------------------------------------
Constants and variables

@ -1,4 +1,4 @@
<?php // $Id: edit_document.php 10204 2006-11-26 20:46:53Z pcool $
<?php // $Id: edit_document.php 10485 2006-12-13 15:52:15Z elixir_inter $
/*
==============================================================================
Dokeos - elearning and course management software
@ -74,6 +74,10 @@ include(api_get_path(LIBRARY_PATH).'events.lib.inc.php');
include(api_get_path(LIBRARY_PATH).'document.lib.php');
require_once(api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
$fck_attribute['Width'] = '800';
$fck_attribute['Height'] = '450';
$fck_attribute['ToolbarSet'] = 'Full';
/*
------------------------------------------------------------------------------
Constants & Variables

@ -33,7 +33,12 @@ FCKConfig.ToolbarSets["Question"] = [
FCKConfig.ToolbarSets["Middle"] = [
['FontSize'],['Bold','Italic','TextColor'],['OrderedList','UnorderedList'],['Rule','Link','Table'],['Image','Flash']
['FontSize'],['Bold','Italic','TextColor'],['OrderedList','UnorderedList'],
['Rule','Link','Table'],['Image','Flash']
] ;
FCKConfig.ToolbarSets["Full"] = [
['Save','Templates','PasteWord','Link','-','Image','Flash','Video','MP3','Table','Rule','-','Subscript', 'Superscript','-','OrderedList','UnorderedList','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],'/',['FontName','FontSize','Bold','Italic','Underline','StrikeThrough','TextColor', 'BGColor','-','Source']
] ;
var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/' ;

@ -5321,6 +5321,8 @@ class learnpath {
$oFCKeditor->Height = '400';
$oFCKeditor->Width = '100%';
$oFCKeditor->Value = $content;
$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js";
$oFCKeditor->ToolbarSet = "Full";
$return .= $oFCKeditor->CreateHtml();
}

Loading…
Cancel
Save