[svn r10556] add a new configuration variable for the fckeditor

skala
Eric Marguin 19 years ago
parent ea8adbc163
commit eb84cd0fbc
  1. 35
      main/exercice/exercise.lib.php
  2. 3
      main/exercice/exercise_admin.inc.php
  3. 1
      main/exercice/exercise_show.php
  4. 1
      main/exercice/feedback.php
  5. 6
      main/forum/editpost.php
  6. 6
      main/forum/iframe_thread.php
  7. 4
      main/forum/index.php
  8. 3
      main/forum/newthread.php
  9. 3
      main/forum/reply.php
  10. 3
      main/inc/lib/blog.lib.php

@ -1,4 +1,4 @@
<?php // $Id: exercise.lib.php 10545 2006-12-21 15:09:31Z elixir_inter $
<?php // $Id: exercise.lib.php 10556 2006-12-26 15:35:00Z elixir_inter $
/*
==============================================================================
Dokeos - elearning and course management software
@ -105,39 +105,8 @@ function showQuestion($questionId, $onlyAnswers=false, $origin=false)
$upload_path = api_get_path(REL_COURSE_PATH).$_SESSION['_course']['path'].'/document/';
$oFCKeditor = new FCKeditor("choice[".$questionId."]") ;
$oFCKeditor->BasePath = api_get_path(WEB_PATH) . 'main/inc/lib/fckeditor/' ;
//$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(WEB_PATH)."claroline/inc/lib/fckeditor_new/myconfig.js?".time(); //to clear cache we use time() but always clear history manually
/*
$oFCKeditor->Config['ImageBrowserURL'] = $oFCKeditor->BasePath . "editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php&ServerPath=/$upload_path/";
$oFCKeditor->Config['ImageUploadURL'] = $oFCKeditor->BasePath . "editor/filemanager/upload/php/upload.php?Type=Image&ServerPath=/$upload_path/" ;
//for Link/File
$oFCKeditor->Config['LinkBrowserURL'] = $oFCKeditor->BasePath . "editor/filemanager/browser/default/browser.html?Connector=connectors/php/connector.php&ServerPath=$upload_path";
$oFCKeditor->Config['LinkUploadURL'] = $oFCKeditor->BasePath . "editor/filemanager/upload/php/upload.php?ServerPath=$upload_path" ;
//for image
$oFCKeditor->Config['ImageBrowserURL'] = $oFCKeditor->BasePath . "editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/php/connector.php&ServerPath=$upload_path";
$oFCKeditor->Config['ImageUploadURL'] = $oFCKeditor->BasePath . "editor/filemanager/upload/php/upload.php?Type=Image&ServerPath=$upload_path" ;
//for flash
$oFCKeditor->Config['FlashBrowserURL'] = $oFCKeditor->BasePath . "editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/php/connector.php&ServerPath=$upload_path";
$oFCKeditor->Config['FlashUploadURL'] = $oFCKeditor->BasePath . "editor/filemanager/upload/php/upload.php?Type=Flash&ServerPath=$upload_path" ;
//for MP3
$oFCKeditor->Config['MP3BrowserURL'] = $oFCKeditor->BasePath . "editor/filemanager/browser/default/browser.html?Type=MP3&Connector=connectors/php/connector.php&ServerPath=$upload_path";
$oFCKeditor->Config['MP3UploadURL'] = $oFCKeditor->BasePath . "editor/filemanager/upload/php/upload.php?Type=MP3&ServerPath=$upload_path" ;
//for other media
$oFCKeditor->Config['VideoBrowserURL'] = $oFCKeditor->BasePath . "editor/filemanager/browser/default/browser.html?Type=Video&Connector=connectors/php/connector.php&ServerPath=$upload_path";
$oFCKeditor->Config['VideoUploadURL'] = $oFCKeditor->BasePath . "editor/filemanager/upload/php/upload.php?Type=Video&ServerPath=$upload_path" ;
$oFCKeditor->ToolbarSet = 'Comment' ;*/
$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js";
$oFCKeditor->Config['IMUploadPath'] = 'upload/test/';
$oFCKeditor->ToolbarSet = "Small";
$oFCKeditor->Width = '80%';
$oFCKeditor->Height = '300';

@ -1,4 +1,4 @@
<?php // $Id: exercise_admin.inc.php 10545 2006-12-21 15:09:31Z elixir_inter $
<?php // $Id: exercise_admin.inc.php 10556 2006-12-26 15:35:00Z elixir_inter $
/*
==============================================================================
Dokeos - elearning and course management software
@ -127,6 +127,7 @@ if(!empty($msgErr))
$oFCKeditor->Width = '100%';
$oFCKeditor->Value = $exerciseDescription;
$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js";
$oFCKeditor->Config['IMUploadPath'] = "/upload/test/";
$oFCKeditor->ToolbarSet = "NewTest";
$TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE);

@ -729,6 +729,7 @@ $result =api_sql_query($query, __FILE__, __LINE__);
$fck_attribute['Width'] = '400';
$fck_attribute['Height'] = '150';
$fck_attribute['ToolbarSet'] = 'Comment';
$fck_attribute['Config']['IMUploadPath'] = 'upload/test/';
$$questionId = new FormValidator('frmcomments'.$questionId,'post','');
$renderer =& $$questionId->defaultRenderer();
$renderer->setFormTemplate(

@ -40,6 +40,7 @@ Display::display_header($nameTools,"Exercise");
$fck_attribute['Width'] = '600';
$fck_attribute['Height'] = '200';
$fck_attribute['ToolbarSet'] = 'Small';
$fck_attribute['Config']['IMUploadPath'] = 'upload/test/';
$form = new FormValidator('feedbackform','post',$_SERVER['PHP_SELF']."?modifyQuestion=".$modifyQuestion."&newQuestion=".$newQuestion);
$obj_registration_form = new HTML_QuickForm('frmRegistration', 'POST');
$renderer =& $obj_registration_form->defaultRenderer();

@ -58,6 +58,12 @@
INIT SECTION
==============================================================================
*/
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'Middle';
$fck_attribute['Config']['IMUploadPath'] = 'upload/forum/';
/*
-----------------------------------------------------------
Language Initialisation

@ -58,6 +58,12 @@
INIT SECTION
==============================================================================
*/
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'Middle';
$fck_attribute['Config']['IMUploadPath'] = 'upload/forum/';
/*
-----------------------------------------------------------
Language Initialisation

@ -78,9 +78,10 @@ $nameTools=get_lang('Forum');
include('forumconfig.inc.php');
include('forumfunction.inc.php');
$fck_attribute['Width'] = '600';
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'Middle';
$fck_attribute['Config']['IMUploadPath'] = 'upload/forum/';
//error_reporting(E_ALL);
/*
@ -107,6 +108,7 @@ Display::display_introduction_section(TOOL_FORUM);
*/
if (api_is_allowed_to_edit())
{
$fck_attribute['ToolbarSet'] = 'ForumLight';
handle_forum_and_forumcategories();
}
get_whats_new();

@ -59,9 +59,10 @@
==============================================================================
*/
$fck_attribute['Width'] = '600';
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'Middle';
$fck_attribute['Config']['IMUploadPath'] = 'upload/forum/';
/*
-----------------------------------------------------------

@ -60,9 +60,10 @@
==============================================================================
*/
$fck_attribute['Width'] = '600';
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'Middle';
$fck_attribute['Config']['IMUploadPath'] = 'upload/forum/';
/*
-----------------------------------------------------------

@ -1117,6 +1117,7 @@ class Blog
$oFCKeditor->Width = '98%';
$oFCKeditor->Value = isset($_POST['post_full_text'])?stripslashes($_POST['post_full_text']):'';
$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js";
$oFCKeditor->Config['IMUploadPath'] = "upload/blog/";
$oFCKeditor->ToolbarSet = "Blog";
$TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE);
@ -1181,6 +1182,7 @@ class Blog
$oFCKeditor->Width = '98%';
$oFCKeditor->Value = isset($_POST['post_full_text'])?stripslashes($_POST['post_full_text']):$blog_post_text;
$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js";
$oFCKeditor->Config['IMUploadPath'] = "upload/blog/";
$oFCKeditor->ToolbarSet = "Blog";
$TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE);
@ -2198,6 +2200,7 @@ class Blog
$oFCKeditor->Width = '97%';
$oFCKeditor->Value = isset($_POST['comment_text'])?stripslashes($_POST['comment_text']):'';
$oFCKeditor->Config['CustomConfigurationsPath'] = api_get_path(REL_PATH)."main/inc/lib/fckeditor/myconfig.js";
$oFCKeditor->Config['IMUploadPath'] = "upload/blog/";
$oFCKeditor->ToolbarSet = "Blog";
$TBL_LANGUAGES = Database::get_main_table(TABLE_MAIN_LANGUAGE);

Loading…
Cancel
Save