[svn r18079] course description: same code for simple and advanced filemanager

skala
Juan Carlos Raña 16 years ago
parent 3a55b1bc7a
commit 166decf9f4
  1. 20
      main/course_description/index.php
  2. 3208
      main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js
  3. 11
      main/inc/lib/fckeditor/myconfig.js
  4. 3
      main/inc/lib/fckeditor/myconfig_afm.js

@ -1,4 +1,4 @@
<?php // $Id: index.php 18062 2009-01-28 23:13:34Z herodoto $
<?php // $Id: index.php 18079 2009-01-29 17:56:50Z herodoto $
/*
==============================================================================
@ -156,21 +156,9 @@ if (api_is_allowed_to_edit() && !is_null($description_id) || $action =='add') {
$current_title = $default_description_titles[$description_id];
}
if (api_get_setting('advanced_filemanager'))
{
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '225';
$fck_attribute['ToolbarSet'] = 'CourseDescription';
}
else
{
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '225';
$fck_attribute['ToolbarSet'] = 'Middle';
$fck_attribute['Config']['InDocument'] = false;
$fck_attribute['Config']['CreateDocumentDir'] = '../../';
$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').$_course['path'].'/document/';
}
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '225';
$fck_attribute['ToolbarSet'] = 'CourseDescription';
} else {
$sql = "SELECT MAX(id) as MAX FROM $tbl_course_description ";

@ -68,6 +68,17 @@ FCKConfig.ToolbarSets["Survey"] = [
['FontSize','Bold','Italic','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image','Source']
] ;
FCKConfig.ToolbarSets["CourseDescription"] = [
['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Link','Unlink','Anchor'],
['Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3'],
['Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],
['FontFormat','FontName','FontSize'],
['Bold','Italic','Underline','StrikeThrough'],
['Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'],
['Source']
] ;
FCKConfig.ToolbarSets["Wiki"] = [
['NewPage','Templates','Save','Print','PageBreak','Preview','ShowBlocks','-','Cut','Copy','Paste','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Wikilink','Link','Unlink','Anchor','-','Image','imgmapPopup','flvPlayer','Flash','EmbedMovies','YouTube','MP3','Table','CreateDiv','Rule','Smiley','SpecialChar','googlemaps'],

@ -72,6 +72,7 @@ FCKConfig.ToolbarSets["Survey"] = [
['FontSize','Bold','Italic','TextColor','-','OrderedList','UnorderedList','-','Rule','Link','Unlink','Table','-','Image','Source']
] ;
FCKConfig.ToolbarSets["CourseDescription"] = [
['NewPage','Templates','Save','PageBreak','Preview','FitWindow','-','PasteText','PasteWord','-','Undo','Redo','-','SelectAll','RemoveFormat','-','Find'],
['Link','Unlink','Anchor'],
@ -116,7 +117,7 @@ FCKConfig.Plugins.Add('fckEmbedMovies');
// added by Juan Carlos Ra<EFBFBD>a
FCKConfig.Plugins.Add("mimetex", "en", sOtherPluginPath ) ;
FCKConfig.Plugins.Add("wikilink", "en,es", sOtherPluginPath ) ; // support to english, spanish
FCKConfig.Plugins.Add("wikilink", "en,es", sOtherPluginPath ) ;
FCKConfig.Plugins.Add("imgmap", "en,es", sOtherPluginPath );
FCKConfig.Plugins.Add("googlemaps", "en,es", sOtherPluginPath ) ;
// This key is for http://localhost. You must get one for each server where you want to use the plugin,

Loading…
Cancel
Save