skala
Julio Montoya 15 years ago
commit cdbb604beb
  1. 30
      main/document/document.inc.php
  2. 38
      main/document/document.php
  3. 5
      main/forum/forumfunction.inc.php
  4. 11
      main/forum/viewthread_flat.inc.php
  5. 2
      main/group/group.php
  6. BIN
      main/img/group_category.gif
  7. BIN
      main/img/user_folders.gif
  8. 4
      main/inc/banner.inc.php
  9. 2
      main/inc/lib/add_course.lib.inc.php
  10. BIN
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/theme/default/images/big_icon/bigfolderShared.png
  11. BIN
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/theme/default/images/small_icon/folderShared.png
  12. 1402
      main/inc/lib/fckeditor/editor/plugins/asciisvg/ASCIIsvgPI.js
  13. 8
      main/inc/lib/fckeditor/editor/plugins/asciisvg/d.svg
  14. 86
      main/inc/lib/fckeditor/editor/plugins/asciisvg/fck_asciisvg.html
  15. 437
      main/inc/lib/fckeditor/editor/plugins/asciisvg/fck_asciisvg.js
  16. 2
      main/inc/lib/fckeditor/editor/plugins/asciisvg/fckplugin.js
  17. 2
      main/inc/lib/fckeditor/editor/plugins/asciisvg/fckplugin_compressed.js
  18. 57
      main/inc/lib/fckeditor/toolbars/extended/announcements.php
  19. 57
      main/inc/lib/fckeditor/toolbars/extended/announcements_student.php
  20. 2
      main/inc/lib/fckeditor/toolbars/extended/documents.php
  21. 3
      main/inc/lib/fckeditor/toolbars/extended/documents_student.php
  22. 57
      main/inc/lib/fckeditor/toolbars/extended/introduction.php
  23. 57
      main/inc/lib/fckeditor/toolbars/extended/notebook.php
  24. 58
      main/inc/lib/fckeditor/toolbars/extended/notebook_student.php
  25. 57
      main/inc/lib/fckeditor/toolbars/extended/training_description.php
  26. 2
      main/inc/lib/fckeditor/toolbars/extended/wiki.php
  27. 2
      main/inc/lib/fckeditor/toolbars/extended/wiki_student.php
  28. 2
      main/inc/lib/fckeditor/toolbars/extended/wiki_task.php
  29. 2
      main/lang/bulgarian/exercice.inc.php
  30. 1
      main/lang/english/document.inc.php
  31. 2
      main/lang/english/install.inc.php
  32. 1
      main/lang/english/trad4all.inc.php
  33. 1
      main/lang/spanish/document.inc.php
  34. 1
      main/lang/spanish/trad4all.inc.php

@ -147,12 +147,12 @@ function create_document_link($www, $title, $path, $filetype, $size, $visibility
$tooltip_title_alt = $tooltip_title;
if ($tooltip_title == 'shared_folder') {
$tooltip_title_alt = get_lang('SharedFolder');
$tooltip_title_alt = get_lang('UserFolders');
}elseif(strstr($tooltip_title, 'shared_folder_session_')) {
$tooltip_title_alt = get_lang('SharedFolder').' ('.api_get_session_name($current_session_id).')';
$tooltip_title_alt = get_lang('UserFolders').' ('.api_get_session_name($current_session_id).')';
}elseif(strstr($tooltip_title, 'sf_user_')) {
$userinfo = Database::get_user_info_from_id(substr($tooltip_title, 8));
$tooltip_title_alt = get_lang('SharedFolder').' ('.api_get_person_name($userinfo['firstname'], $userinfo['lastname']).')';
$tooltip_title_alt = get_lang('UserFolder').' '.api_get_person_name($userinfo['firstname'], $userinfo['lastname']);
}
$current_session_id=api_get_session_id();
@ -214,19 +214,19 @@ function build_document_icon_tag($type, $path) {
$icon = choose_image($basename);
} else {
if ($basename == 'shared_folder') {
$icon = 'shared_folder.gif';
$icon = 'user_folders.gif';
if ($is_allowed_to_edit) {
$basename = get_lang('HelpSharedFolder');
} else {
$basename = get_lang('SharedFolder');
$basename = get_lang('UserFolders');
}
}elseif(strstr($basename, 'shared_folder_session_')) {
if ($is_allowed_to_edit) {
$basename = '***('.api_get_session_name($current_session_id).')*** '.get_lang('HelpSharedFolder');
} else {
$basename = get_lang('SharedFolder').' ('.api_get_session_name($current_session_id).')';
$basename = get_lang('UserFolders').' ('.api_get_session_name($current_session_id).')';
}
$icon = 'shared_folder.gif';
$icon = 'user_folders.gif';
}elseif(strstr($basename, 'sf_user_')) {
$userinfo = Database::get_user_info_from_id(substr($basename, 8));
$image_path = UserManager::get_user_picture_path_by_id(substr($basename, 8), 'web', false, true);
@ -237,7 +237,7 @@ function build_document_icon_tag($type, $path) {
$icon = '../upload/users/'.substr($basename, 8).'/'.$image_path['file'];
}
$basename = get_lang('SharedFolder').' ('.api_get_person_name($userinfo['firstname'], $userinfo['lastname']).')';
$basename = get_lang('UserFolder').' ('.api_get_person_name($userinfo['firstname'], $userinfo['lastname']).')';
} else {
if (($basename =='audio' || $basename =='flash' || $basename =='images' || $basename =='video') && api_is_allowed_to_edit()) {
@ -386,6 +386,7 @@ function build_move_to_selector($folders, $curdirpath, $move_file, $group_dir =
if ($curdirpath != '/') {
$form .= '<option value="/">'.get_lang('Documents').'</option>';
}
if (is_array($folders)) {
foreach ($folders as & $folder) {
// You cannot move a file to:
@ -550,15 +551,18 @@ function is_any_user_shared_folder($path, $current_session_id) {
}
/**
* Checks whether the user is into his shared folder
* @return return bool Return true when user is in his user shared folder
* Checks whether the user is into his shared folder or into a subfolder
* @return return bool Return true when user is in his user shared folder or into a subforder
*/
function is_my_shared_folder($user_id, $path, $current_session_id) {
$clean_path = Security::remove_XSS($path);
if($clean_path == '/shared_folder/sf_user_'.$user_id){
$clean_path = Security::remove_XSS($path).'/';
$main_user_shared_folder = '/shared_folder\/sf_user_'.$user_id.'\//';//for security does not remove the last slash
$main_user_shared_folder_session='/shared_folder_session_'.$current_session_id.'\/sf_user_'.$user_id.'\//';//for security does not remove the last slash
if(preg_match($main_user_shared_folder, $clean_path)){
return true;
}
elseif($clean_path == '/shared_folder_session_'.$current_session_id.'/sf_user_'.$user_id){
elseif(preg_match($main_user_shared_folder_session, $clean_path)){
return true;
}
else{

@ -441,8 +441,8 @@ if (isset($_GET['action']) && $_GET['action'] == 'copytomyfiles' && api_get_sett
//START ACTION MENU
/* MOVE FILE OR DIRECTORY */
//Only teacher and all users into their group
if($is_allowed_to_edit || $group_member_with_upload_rights){
//Only teacher and all users into their group and each user into his/her shared folder
if($is_allowed_to_edit || $group_member_with_upload_rights || is_my_shared_folder($_user['user_id'], $curdirpath, $current_session_id) || is_my_shared_folder($_user['user_id'], Security::remove_XSS($_POST['move_to']), $current_session_id)){
$my_get_move = Security::remove_XSS($_GET['move']);
if (isset($_GET['move']) && $_GET['move'] != '') {
@ -459,13 +459,29 @@ if (isset($_GET['action']) && $_GET['action'] == 'copytomyfiles' && api_get_sett
}
if (DocumentManager::get_document_id($_course, $my_get_move)) {
$folders = DocumentManager::get_all_document_folders($_course, $to_group_id, $is_allowed_to_edit || $group_member_with_upload_rights);
$folders = DocumentManager::get_all_document_folders($_course, $to_group_id, $is_allowed_to_edit || $group_member_with_upload_rights);
echo '<div class="row"><div class="form_header">'.get_lang('Move').'</div></div>';
echo build_move_to_selector($folders, Security::remove_XSS($_GET['curdirpath']), $my_get_move, $group_properties['directory']);
//filter if is my shared folder. TODO: move this code to build_move_to_selector function
if(is_my_shared_folder($_user['user_id'], $curdirpath, $current_session_id) && !$is_allowed_to_edit){
$main_user_shared_folder_main = '/shared_folder/sf_user_'.api_get_user_id();//only main user shared folder
$main_user_shared_folder_sub = '/shared_folder\/sf_user_'.api_get_user_id().'\//';//all subfolders
$user_shared_folders=array();
foreach($folders as $fold){
if($main_user_shared_folder_main==$fold || preg_match($main_user_shared_folder_sub, $fold)){
$user_shared_folders[]=$fold;
}
}
echo '<div class="row"><div class="form_header">'.get_lang('Move').'</div></div>';
echo build_move_to_selector($user_shared_folders, Security::remove_XSS($_GET['curdirpath']), $my_get_move, $group_properties['directory']);
}
else{
echo '<div class="row"><div class="form_header">'.get_lang('Move').'</div></div>';
echo build_move_to_selector($folders, Security::remove_XSS($_GET['curdirpath']), $my_get_move, $group_properties['directory']);
}
}
}
if (isset($_POST['move_to']) && isset($_POST['move_file'])) {
if (!$is_allowed_to_edit) {
if (DocumentManager::check_readonly($_course, $_user['user_id'], $my_get_move)) {
@ -484,7 +500,6 @@ if (isset($_GET['action']) && $_GET['action'] == 'copytomyfiles' && api_get_sett
// This is needed for the update_db_info function
//$dbTable = $_course['dbNameGlu'].'document';
$dbTable = Database::get_course_table(TABLE_DOCUMENT);
// Security fix: make sure they can't move files that are not in the document table
if (DocumentManager::get_document_id($_course, $_POST['move_file'])) {
if (move($base_work_dir.$_POST['move_file'], $base_work_dir.$_POST['move_to'])) {
@ -501,9 +516,10 @@ if (isset($_GET['action']) && $_GET['action'] == 'copytomyfiles' && api_get_sett
}
}
}
/* DELETE FILE OR DIRECTORY */
//Only teacher and all users into their group
if($is_allowed_to_edit || $group_member_with_upload_rights){
if($is_allowed_to_edit || $group_member_with_upload_rights || is_my_shared_folder($_user['user_id'], $curdirpath, $current_session_id)){
if (isset($_GET['delete'])) {
if (api_is_coach()) {
@ -634,7 +650,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'copytomyfiles' && api_get_sett
/* TEMPLATE ACTION */
//Only teacher and all users into their group
if($is_allowed_to_edit || $group_member_with_upload_rights){
if($is_allowed_to_edit || $group_member_with_upload_rights || is_my_shared_folder($_user['user_id'], $curdirpath, $current_session_id)){
if (isset($_GET['add_as_template']) && !isset($_POST['create_template'])) {
$document_id_for_template = intval($_GET['add_as_template']);
@ -928,8 +944,8 @@ if (!is_null($docs_and_folders)) {
global $total_size;
if (!$is_certificate_mode && $total_size != 0 && (api_get_setting('students_download_folders') == 'true' || api_is_allowed_to_edit() || api_is_platform_admin())) {
//don't show icon into shared folder, and don´t show into main path (root)
if (!is_shared_folder($curdirpath, $current_session_id) && $curdirpath!='/' || api_is_allowed_to_edit() || api_is_platform_admin())
//for student does not show icon into other shared folder, and does not show into main path (root)
if (is_my_shared_folder($_user['user_id'], $curdirpath, $current_session_id) && $curdirpath!='/' || api_is_allowed_to_edit() || api_is_platform_admin())
{
echo '<a href="'.api_get_self().'?'.api_get_cidreq().'&action=downloadfolder&path='.$curdirpathurl.'">'.Display::display_icon('zip_save.gif', get_lang('Save').' (ZIP)'). get_lang('Save').' (ZIP)</a>&nbsp';
}

@ -3262,8 +3262,9 @@ function prepare4display($input='') {
$counter++;
}
}
//return api_html_entity_decode(stripslashes($input));
return Security::remove_XSS($input, STUDENT);
//return api_html_entity_decode(stripslashes($input));
//change this to COURSEMANAGERLOWSECURITY or COURSEMANAGER to lower filtering and allow more styles (see comments of Security::remove_XSS() method to learn about other levels)
return Security::remove_XSS($input, STUDENT);
} else {
$returnarray=array_walk($input, 'api_html_entity_decode');
$returnarray=array_walk($input, 'stripslashes');

@ -111,7 +111,7 @@ if (isset($current_thread['thread_id'])){
}
}
echo "</td>";
// show the
// prepare the notification icon
if (isset($whatsnew_post_info[$current_forum['forum_id']][$current_thread['thread_id']][$row['post_id']]) and !empty($whatsnew_post_info[$current_forum['forum_id']][$current_thread['thread_id']][$row['post_id']]) and !empty($whatsnew_post_info[$_GET['forum']][$row['thread_id']])) {
$post_image=icon('../img/forumpostnew.gif');
} else {
@ -124,10 +124,11 @@ if (isset($current_thread['thread_id'])){
echo "</tr>";
// The post message
echo "<tr>";
echo "<td class=\"$messageclass\">".prepare4display($row['post_text'])."</td>";
echo "</tr>";
// The post message
echo "<tr>";
// see comments inside forumfunction.inc.php to lower filtering and allow more visual changes
echo "<td class=\"$messageclass\">".prepare4display($row['post_text'])."</td>";
echo "</tr>";
// The check if there is an attachment

@ -189,7 +189,7 @@ foreach ($group_cats as $index => $category) {
$in_category = false;
if (api_get_setting('allow_group_categories') == 'true') {
if (isset ($_GET['show_all']) || (isset ($_GET['category']) && $_GET['category'] == $category['id'])) {
echo '<img src="../img/shared_folder.gif" alt=""/>';
echo '<img src="../img/group_category.gif" alt=""/>';
echo '<a href="group.php?'.api_get_cidreq().'&origin='.Security::remove_XSS($_GET['origin']).'">'.$category['title'].'</a>';
$in_category = true;
} else {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -416,11 +416,11 @@ if (isset($interbreadcrumb) && is_array($interbreadcrumb)) {
$navigation_item['title'] = $breadcrumb_step['name'];
// titles for shared folders
if ($breadcrumb_step['name'] == 'shared_folder') {
$navigation_item['title'] = get_lang('SharedFolder');
$navigation_item['title'] = get_lang('UserFolders');
}
elseif(strstr($breadcrumb_step['name'], 'shared_folder_session_')) {
$navigation_item['title'] = get_lang('SharedFolder');
$navigation_item['title'] = get_lang('UserFolders');
}
elseif(strstr($breadcrumb_step['name'], 'sf_user_')) {
$userinfo = Database::get_user_info_from_id(substr($breadcrumb_step['name'], 8));

@ -2231,7 +2231,7 @@ function fill_Db_course($course_db_name, $course_repository, $language, $default
$example_doc_id = Database :: insert_id();
Database::query("INSERT INTO `".$TABLEITEMPROPERTY . "` (tool,insert_user_id,insert_date,lastedit_date,ref,lastedit_type,lastedit_user_id,to_group_id,to_user_id,visibility) VALUES ('document',1,NOW(),NOW(),$example_doc_id,'DocumentAdded',1,0,NULL,0)");
Database::query("INSERT INTO `".$TABLETOOLDOCUMENT . "`(path,title,filetype,size) VALUES ('/shared_folder','".get_lang('SharedDocumentsDirectory')."','folder','0')");
Database::query("INSERT INTO `".$TABLETOOLDOCUMENT . "`(path,title,filetype,size) VALUES ('/shared_folder','".get_lang('UserFolders')."','folder','0')");
$example_doc_id = Database :: insert_id();
Database::query("INSERT INTO `".$TABLEITEMPROPERTY . "` (tool,insert_user_id,insert_date,lastedit_date,ref,lastedit_type,lastedit_user_id,to_group_id,to_user_id,visibility) VALUES ('document',1,NOW(),NOW(),$example_doc_id,'DocumentAdded',1,0,NULL,0)");

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 621 B

After

Width:  |  Height:  |  Size: 730 B

File diff suppressed because it is too large Load Diff

@ -0,0 +1,8 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg id="root" xml:space="preserve" width="100%" height="100%"
preserveAspectRatio="xMidYMid meet"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http:///www.w3.org/1999/xlink">
</svg>

After

Width:  |  Height:  |  Size: 352 B

@ -2,7 +2,7 @@
<!--
* Chamilo LMS
*
* Copyright (c) 2010 Ivan Tcholakov <ivantcholakov@gmail.com>
* Copyright (c) 2011 Ivan Tcholakov <ivantcholakov@gmail.com>
*
* License:
* GNU Lesser General Public License, Version 3, 29 June 2007
@ -15,7 +15,8 @@
<meta name="robots" content="noindex, nofollow" />
<script type="text/javascript">
document.write( '<scr' + 'ipt type="text/javascript" src="' + window.parent.frameElement._DialogArguments.Editor.FCKConfig.ScriptASCIIMathML + '"><\/scr' + 'ipt>' ) ;
//document.write( '<scr' + 'ipt type="text/javascript" src="' + window.parent.frameElement._DialogArguments.Editor.FCKConfig.ScriptASCIIMathML + '"><\/scr' + 'ipt>' ) ;
document.write( '<scr' + 'ipt type="text/javascript" src="ASCIIsvgPI.js"><\/scr' + 'ipt>' ) ;
</script>
<script src="../../dialog/common/fck_dialog_common.js" type="text/javascript"></script>
@ -36,5 +37,86 @@ form p { margin-top: 5px; margin-bottom: 5px; }
</head>
<body scroll="no" style="overflow: hidden;">
Equation type: <select id="eqntype" onchange="javascript: AsciisvgDialog.changetype();">
<option value="func">y=f(x)</option>
<option value="polar">r=f(t)</option>
<option value="param">x=f(t),y=g(t)</option>
<option value="slope">dy/dx = f(x,y)</option>
</select>
&nbsp;&nbsp;&nbsp;
<span id="eq1lbl">f(x)=</span> <input type="text" id="equation" size="15" value="sin(x)"/> <span id="eq2lbl"><i></i></span><span id="eq2"><i></i></span>
&nbsp;from <input type="text" id="xstart" size="4" value=""/> to <input type="text" id="xend" size="4" value=""/>
<hr/>
Color: <Select id="gcolor">
<option value="black">Black</option>
<option value="red">Red</option>
<option value="orange">Orange</option>
<option value="yellow">Yellow</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
<option value="purple">Purple</option>
</select>
Width: <Select id="strokewidth">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
Line: <Select id="strokedash">
<option value="none">Solid</option>
<option value="2">Dotted</option>
<option value="5">Dashed</option>
<option value="5 2">Tight Dash</option>
<option value="7 3 2 3">Dash-Dot</option>
</select>
Start with: <Select id="gstart">
<option value="none">Nothing</option>
<option value="arrow">Arrow</option>
<option value="opendot">Open Dot</option>
<option value="dot">Dot</option>
</select>
End with: <Select id="gend">
<option value="none">Nothing</option>
<option value="arrow">Arrow</option>
<option value="opendot">Open Dot</option>
<option value="dot">Dot</option>
</select>
<hr/>
xmin: <input type="text" id="xmin" size="4" value="-7.5" onChange='javascript: UpdatePreview();'/>
xmax: <input type="text" id="xmax" size="4" value="7.5" onChange='javascript: UpdatePreview();'/>
xscl: <input type="text" id="xscl" size="3" value="1" onChange='javascript: UpdatePreview();'/>
&nbsp;&nbsp;
ymin: <input type="text" id="ymin" size="4" value="-5" onChange='javascript: UpdatePreview();'/>
ymax: <input type="text" id="ymax" size="4" value="5" onChange='javascript: UpdatePreview();'/>
yscl: <input type="text" id="yscl" size="3" value="1" onChange='javascript: UpdatePreview();'/>
<hr/>
Show axis labels: <input type="checkbox" id="labels" value="Show Labels" onClick='javascript: UpdatePreview();' checked="checked"/>
Show XY grid: <input type="checkbox" id="grid" value="Show Grid" onClick='javascript: UpdatePreview();' checked="checked"/>
&nbsp;&nbsp;
Resize to: <input type="text" id="gwidth" size="5" value="300"/> by <input type="text" id="gheight" size="5" value="200"/>
<input type="button" value="Update" onclick="javascript: UpdatePreview();"/>
<hr/>
<input type="button" value="Add Graph" onclick="javascript: AsciisvgDialog.addgraph();"/>
Graphs: <select id="graphs" onchange="javascript: AsciisvgDialog.loadeqn();"></select>
<input type="button" value="Replace Selected Graph" onclick="javascript: AsciisvgDialog.replacegraph();"/>
<input type="button" value="Remove" onclick="javascript: AsciisvgDialog.removegraph();"/>
<select id="alignment" onchange="javascript: UpdatePreview();">
<option value="text-top">Top</option>
<option value="middle">Middle</option>
<option value="text-bottom">Bottom</option>
<option value="left">Float left</option>
<option value="right">Float right</option>
</select>
<hr/>
<div id="preview"><embed id="previewsvg" type="image/svg+xml" src="d.svg" style="width: 300px; height: 200px; vertical-align: middle; float: none;" sscr="-7.5,7.5,-5,5,1,1,1,1,1,300,200" /></div>
</body>
</html>

@ -32,18 +32,28 @@ var alertIfNoMathML = false ;
var notifyIfNoSVG = false ;
var alertIfNoSVG = false ;
// Formula translation will be called explicitly in this dialog after it loads.
var translateOnLoad = false ;
//var translateOnLoad = false ;
var translateOnLoad = true ;
//
// Formula tooltips are hard-coded in this dialog, there is no need they to be generated.
var showasciiformulaonhover = false ;
// Font size of the formulas in this dialog.
var mathfontsize = "1.1em" ;
var noSVG = ASnoSVG ; // Temporarily added.
var width = 300 ;
var height = 200 ;
var alignm = 'middle' ;
//var sscr = '' ;
var sscr = '-7.5,7.5,-5,5,1,1,1,1,1,300,200' ;
//var isnew = null ;
var isnew = true ;
function LoadSelection()
{
// ...
Preview() ;
UpdatePreview() ;
}
function Ok()
@ -59,15 +69,434 @@ window.onload = function()
oEditor.FCKLanguageManager.TranslatePage( document ) ;
// Initialization of the script ASCIIMathML.js.
init() ;
//init() ;
// Initialization of the dialog's script.
AsciisvgDialog.init() ;
// Load the selected element information (if any).
//LoadSelection() ;
LoadSelection() ;
dialog.SetAutoSize( true ) ;
// Activate the "OK" button.
dialog.SetOkButton( true ) ;
}
function LoadSelection()
{
UpdatePreview() ;
}
function UpdatePreview()
{
AsciisvgDialog.graphit() ;
}
//tinyMCEPopup.requireLangPack();
var AsciisvgDialog =
{
width: 300 ,
height: 200 ,
alignm: 'middle' ,
//sscr: '' ,
sscr: '-7.5,7.5,-5,5,1,1,1,1,1,300,200' ,
//isnew: null ,
isnew: true ,
init : function()
{
//var f = document.forms[ 0 ] ;
// Get the selected contents as text and place it in the input.
/*
this.width = tinyMCEPopup.getWindowArg( 'width' ) ;
this.height = tinyMCEPopup.getWindowArg( 'height' ) ;
this.isnew = tinyMCEPopup.getWindowArg( 'isnew' ) ;
this.sscr = tinyMCEPopup.getWindowArg( 'sscr' ) ;
this.AScgiloc = tinyMCEPopup.getWindowArg( 'AScgiloc' ) ;
this.alignm = tinyMCEPopup.getWindowArg( 'alignm' ) ;
*/
if ( noSVG )
{
GetE( 'preview' ).innerHTML = '<img id="previewimg" style="width:' + this.width + 'px; height: ' + this.height + 'px; vertical-align: middle; float: none;" src="' + AScgiloc + '?sscr=' + encodeURIComponent( this.sscr ) + '" script=" " />' ;
}
else
{
//GetE( 'preview' ).innerHTML = '<embed id="previewsvg" type="image/svg+xml" src="' + FCKConfig.DrawingASCIISVG + '" style="width: 300px; height: 200px; vertical-align: middle; float: none;" sscr="-7.5,7.5,-5,5,1,1,1,1,1,300,200" />' ;
GetE( 'previewsvg' ).setAttribute( 'sscr' , this.sscr );
}
this.getsscr( this.sscr ) ;
} ,
insert : function()
{
ed = tinyMCEPopup.editor ;
// Insert the contents from the input into the document.
if ( this.isnew )
{
if ( this.alignm == 'left' || this.alignm == 'right' )
{
aligntxt = 'vertical-align: middle; float: ' + this.alignm + ';' ;
}
else
{
aligntxt = 'vertical-align: ' + this.alignm + '; float: none;' ;
}
tinyMCEPopup.editor.execCommand( 'mceInsertContent', false, '<img style="width: 300px; height: 200px; ' + aligntxt + '" src="' + AScgiloc + '?sscr=' + encodeURIComponent( this.sscr ) + '" sscr="' + this.sscr + '" script=" " />') ;
}
else
{
el = tinyMCEPopup.editor.selection.getNode() ;
ed.dom.setAttrib( el , 'sscr' , this.sscr ) ;
ed.dom.setAttrib( el , 'src' , AScgiloc + '?sscr=' + encodeURIComponent( this.sscr ) ) ;
ed.dom.setAttrib( el , 'width' , this.width ) ;
ed.dom.setAttrib( el , 'height' , this.height ) ;
ed.dom.setStyle( el , 'width' , this.width + 'px' ) ;
ed.dom.setStyle( el , 'height' , this.height + 'px') ;
if ( this.alignm == 'left' || this.alignm == 'right' )
{
ed.dom.setStyle( el , 'float' , this.alignm ) ;
ed.dom.setStyle( el , 'vertical-align' , 'middle' ) ;
}
else
{
ed.dom.setStyle( el , 'float' , 'none' ) ;
ed.dom.setStyle( el , 'vertical-align' , this.alignm ) ;
}
}
tinyMCEPopup.close() ;
} ,
addgraph : function()
{
var graphs = GetE( 'graphs' ) ;
var newopt = document.createElement( 'option' ) ;
var type = GetE( 'eqntype' ).value ;
var eq1 = GetE( 'equation' ).value ;
var eq2 = null ;
if ( type == 'func' )
{
newopt.text = 'y=' + eq1 ;
}
else if ( type == 'polar' )
{
newopt.text = 'r=' + eq1 ;
}
else if ( type == 'param' )
{
eq2= GetE( 'eqn2' ).value ;
newopt.text = '[x,y]=[' + eq1 + ','+ eq2 + ']' ;
}
else if ( type == 'slope' )
{
newopt.text = 'dy/dx=' + eq1 ;
eq2= GetE( 'eqn2' ).value ;
}
m_gstart = GetE( 'gstart' ).selectedIndex ;
m_gend = GetE( 'gend' ).selectedIndex ;
m_color = GetE( 'gcolor' ).value ;
m_strokewidth = GetE( 'strokewidth' ).value ;
m_strokedash = GetE( 'strokedash' ).value ;
if ( GetE( 'xstart' ).value.length > 0 )
{
//newopt.value = 'myplot(' + eqn +',"' + m_gstart+ '","' + m_gend + '",' + GetE( 'xstart' ).value + ',' + GetE( 'xend' ).value + ');' ;
newopt.value = type + ',' + eq1 + ',' + eq2 + ',' + m_gstart + ',' + m_gend + ',' + GetE( 'xstart' ).value + ',' + GetE( 'xend' ).value + ',' + m_color + ',' + m_strokewidth + ',' + m_strokedash ;
}
else
{
//newopt.value = 'myplot(' + eqn + ',"' + m_gstart + '","' + m_gend + '");' ;
newopt.value = type + ',' + eq1 + ',' + eq2 + ',' + m_gstart + ',' + m_gend + ',,' + ',' + m_color + ',' + m_strokewidth + ',' + m_strokedash ;
}
graphs.options[ graphs.options.length ] = newopt ;
graphs.selectedIndex = graphs.options.length - 1 ;
UpdatePreview() ;
GetE( 'equation' ).focus() ;
} ,
replacegraph : function()
{
var graphs = GetE( 'graphs' ) ;
if ( graphs.selectedIndex >= 0 )
{
graphs.options[ graphs.selectedIndex ] = null ; //standards compliant
}
this.addgraph() ;
} ,
removegraph : function()
{
var graphs = GetE( 'graphs' ) ;
if ( graphs.selectedIndex >= 0 ) {
graphs.options[ graphs.selectedIndex ] = null ;
if ( graphs.options.length > 0 ) { this.loadeqn() ; }
}
UpdatePreview() ;
GetE( 'equation' ).focus() ;
} ,
graphit : function()
{
//ed = tinyMCEPopup.editor ;
var commands ;
commands = '' ;
initialized = false ;
//commands = 'setBorder(5);' ;
m_xmin = GetE( 'xmin' ).value ;
m_xmax = GetE( 'xmax' ).value ;
m_ymin = GetE( 'ymin' ).value ;
m_ymax = GetE( 'ymax' ).value ;
if ( m_ymin == '' ) m_ymin = null ;
if ( m_ymax == '' ) m_ymax = null ;
commands += m_xmin + ',' + m_xmax + ',' + m_ymin + ',' + m_ymax + ',' ;
m_xscl = GetE( 'xscl' ).value ;
m_yscl = GetE( 'yscl' ).value ;
if ( m_xscl == '' ) m_xscl = null ;
if ( m_yscl == '' ) m_yscl = null ;
if ( GetE( 'labels' ).checked )
{
m_labels = '1' ;
}
else
{
m_labels = 'null' ;
}
if ( GetE( 'grid' ).checked )
{
m_grid = ',' + m_xscl + ',' + m_yscl ;
}
else
{
m_grid = ',null,null' ;
}
commands += m_xscl + ',' + m_yscl + ',' + m_labels + m_grid ;
commands += ',' + GetE( 'gwidth' ).value + ',' + GetE( 'gheight' ).value ;
graphs = GetE( 'graphs' ) ;
for ( i = 0 ; i < graphs.length ; i++ )
{
commands += ',' + graphs.options[i].value ;
}
this.width = GetE( 'gwidth' ).value ;
this.height = GetE( 'gheight' ).value ;
this.sscr = commands ;
this.alignm = GetE( 'alignment' ).value ;
//if ( noSVG )
//{
// pvimg = GetE( 'previewimg' ) ;
// pvimg.src = AScgiloc + '?sscr=' + encodeURIComponent(commands) ;
// //ed.dom.setStyle( pvimg, 'width' , this.width + 'px' ) ;
// //ed.dom.setStyle( pvimg, 'height' , this.height + 'px' ) ;
//}
//else
//{
pvsvg = GetE( 'previewsvg' ) ;
parseShortScript( commands , this.width , this.height ) ;
//}
} ,
changetype : function()
{
var type = GetE( 'eqntype' ).value ;
if ( type == 'func' )
{
this.chgtext( 'eq1lbl', 'f(x)=' ) ;
GetE( 'equation' ).value = 'sin(x)' ;
this.chgtext( 'eq2lbl' , '' ) ;
this.chgtext( 'eq2' , '' ) ;
}
else if ( type == 'polar' )
{
this.chgtext( 'eq1lbl' , 'r(t)=' ) ;
GetE( 'equation' ).value = 't' ;
this.chgtext( 'eq2lbl' , '' ) ;
this.chgtext( 'eq2' , '' ) ;
}
else if ( type == 'param' )
{
this.chgtext( 'eq1lbl' , 'f(t)=' ) ;
this.chgtext( 'eq2lbl' , 'g(t)= ' ) ;
var newinput = document.createElement( 'input' ) ;
newinput.type = 'text' ;
newinput.name = 'eqn2' ;
newinput.id = 'eqn2' ;
newinput.size = '15' ;
newinput.value = 'cos(t)' ;
var cnode = GetE( 'eq2' ) ;
cnode.replaceChild( newinput,cnode.lastChild ) ;
GetE( 'equation' ).value = 'sin(t)' ;
}
else if ( type == 'slope' )
{
this.chgtext( 'eq1lbl' , 'dy/dx (x,y) = ' ) ;
GetE( 'equation' ).value = 'x*y' ;
this.chgtext( 'eq2lbl' , 'every ' ) ;
var newinput = document.createElement( 'input' ) ;
newinput.type = 'text' ;
newinput.name = 'eqn2' ;
newinput.id = 'eqn2' ;
newinput.size = '2' ;
newinput.value = '1' ;
var cnode = GetE( 'eq2' ) ;
cnode.replaceChild( newinput , cnode.lastChild ) ;
}
GetE( 'gstart' ).selectedIndex = 0 ;
GetE( 'gend' ).selectedIndex = 0 ;
GetE( 'xstart' ).value = '' ;
GetE( 'xend' ).value = '' ;
GetE( 'gcolor' ).selectedIndex = 0 ;
GetE( 'strokewidth' ).selectedIndex = 0 ;
GetE( 'strokedash' ).selectedIndex = 0 ;
} ,
loadeqn : function()
{
graphs = GetE( 'graphs' ) ;
var sa = graphs.options[ graphs.selectedIndex ].value.split( ',' ) ;
if ( sa[0] == 'func' ) {
GetE( 'eqntype' ).selectedIndex = 0 ;
} else if ( sa[0] == 'polar' ) {
GetE( 'eqntype' ).selectedIndex = 1 ;
} else if ( sa[0] == 'param' ) {
GetE( 'eqntype' ).selectedIndex = 2 ;
} else if ( sa[0] == 'slope' ) {
GetE( 'eqntype' ).selectedIndex = 3 ;
}
this.changetype() ;
GetE( 'equation' ).value = sa[1] ;
if ( ( sa[0] == 'param' ) || ( sa[0] == 'slope' ) ) {
GetE( 'eqn2' ).value = sa[2] ;
}
GetE( 'gstart' ).selectedIndex = sa[ 3 ] ;
GetE( 'gend' ).selectedIndex = sa[ 4 ] ;
GetE( 'xstart' ).value = sa[ 5 ] ;
GetE( 'xend' ).value = sa[ 6 ] ;
switch ( sa[ 7 ] )
{
case 'black' : GetE( 'gcolor' ).selectedIndex = 0 ; break ;
case 'red' : GetE( 'gcolor' ).selectedIndex = 1 ; break ;
case 'orange' : GetE( 'gcolor' ).selectedIndex = 2 ; break ;
case 'yellow' : GetE( 'gcolor' ).selectedIndex = 3 ; break ;
case 'green' : GetE( 'gcolor' ).selectedIndex = 4 ; break ;
case 'blue' : GetE( 'gcolor' ).selectedIndex = 5 ; break ;
case 'purple' : GetE( 'gcolor' ).selectedIndex = 6 ; break ;
}
GetE( 'strokewidth' ).selectedIndex = sa[ 8 ] - 1 ;
switch ( sa[ 9 ] )
{
case '2' : GetE( 'strokedash' ).selectedIndex = 1 ; break ;
case '5' : GetE( 'strokedash' ).selectedIndex = 2 ; break ;
case '5 2' : GetE( 'strokedash' ).selectedIndex = 3 ; break ;
case '7 3 2 3' : GetE( 'strokedash' ).selectedIndex = 4 ; break ;
default : GetE( 'strokedash' ).selectedIndex = 0 ;
}
} ,
getsscr : function( text , alignment )
{
alignment = 'middle' ;
sa = text.split( ',' ) ;
GetE( 'xmin' ).value = sa[ 0 ] ;
GetE( 'xmax' ).value = sa[ 1 ] ;
GetE( 'ymin' ).value = sa[ 2 ] ;
GetE( 'ymax' ).value = sa[ 3 ] ;
GetE( 'xscl' ).value = sa[ 4 ] ;
GetE( 'yscl' ).value = sa[ 5 ] ;
if ( sa[ 6 ] != 'null' )
{
GetE( 'labels' ).checked = true ;
}
else
{
GetE( 'labels' ).checked = false ;
}
if ( typeof eval( sa[ 7 ] ) == 'number' )
{
GetE( 'grid' ).checked = true ;
}
else
{
GetE( 'grid' ).checked = false ;
}
GetE( 'gwidth' ).value = sa[ 9 ] ;
GetE( 'gheight' ).value = sa[ 10 ] ;
GetE( 'graphs' ).length = 0 ;
var inx = 11 ;
while ( sa.length > inx + 9 )
{
var newopt = document.createElement( 'option' ) ;
if ( sa[ inx ] == 'func' )
{
newopt.text = 'y=' + sa[ inx + 1 ] ;
}
else if ( sa[ inx ] == 'polar' )
{
newopt.text = 'r=' + sa[ inx + 1 ] ;
}
else if ( sa[inx] == 'param' )
{
newopt.text = '[x,y]=[' + sa[ inx + 1 ] + ',' + sa[ inx + 2 ] + ']' ;
}
else if ( sa[inx] == 'slope' )
{
newopt.text = 'dy/dx=' + sa[ inx + 1 ] ;
}
newopt.value = sa[inx] + ',' + sa[ inx + 1 ] + ',' + sa[ inx + 2 ] + ',' + sa[ inx + 3 ] + ',' + sa[ inx + 4 ] + ',' + sa[ inx + 5 ] + ',' + sa[ inx + 6 ] + ',' + sa[ inx + 7 ] + ',' + sa[ inx + 8] + ',' + sa[ inx + 9 ] ;
graphs = GetE( 'graphs' ) ;
graphs.options[ graphs.options.length ] = newopt ;
//GetE( 'graphs' ).add( newopt ) ;
inx += 10 ;
}
if ( inx > 11 ) {
this.loadeqn() ;
}
switch ( alignment.toLowerCase() )
{
case 'text-top' : GetE( 'alignment' ).selectedIndex = 0 ; break ;
case 'middle' : GetE( 'alignment' ).selectedIndex = 1 ; break ;
case 'text-bottom' : GetE( 'alignment' ).selectedIndex = 2 ; break ;
case 'left' : GetE( 'alignment' ).selectedIndex = 3 ; break ;
case 'right' : GetE( 'alignment' ).selectedIndex = 4 ; break ;
default: GetE( 'alignment' ).selectedIndex = 0 ; break ;
}
//UpdatePreview() ;
} ,
chgtext : function( tag , text )
{
var cnode = GetE( tag ) ;
cnode.replaceChild( document.createTextNode( text ) , cnode.lastChild ) ;
}
} ;

@ -24,7 +24,7 @@ var alertIfNoSVG = false;
var translateASCIIMath = false ;
// Registering the related command.
FCKCommands.RegisterCommand( 'asciisvg', new FCKDialogCommand( FCKLang['DlgAsciiSvg'], FCKLang['DlgAsciiSvgGraphEditor'], FCKConfig.PluginsPath + 'asciisvg/fck_asciisvg.html', 500, 500 ) ) ;
FCKCommands.RegisterCommand( 'asciisvg', new FCKDialogCommand( FCKLang['DlgAsciiSvg'], FCKLang['DlgAsciiSvgGraphEditor'], FCKConfig.PluginsPath + 'asciisvg/fck_asciisvg.html', 700, 600 ) ) ;
// Create the "asciisvg" toolbar button.
var oAsciiSvgItem = new FCKToolbarButton( 'asciisvg', FCKLang['DlgAsciiSvg'] ) ;

@ -24,7 +24,7 @@ var alertIfNoSVG = false;
var translateASCIIMath = false ;
// Registering the related command.
FCKCommands.RegisterCommand( 'asciisvg', new FCKDialogCommand( FCKLang['DlgAsciiSvg'], FCKLang['DlgAsciiSvgGraphEditor'], FCKConfig.PluginsPath + 'asciisvg/fck_asciisvg.html', 500, 500 ) ) ;
FCKCommands.RegisterCommand( 'asciisvg', new FCKDialogCommand( FCKLang['DlgAsciiSvg'], FCKLang['DlgAsciiSvgGraphEditor'], FCKConfig.PluginsPath + 'asciisvg/fck_asciisvg.html', 700, 600 ) ) ;
// Create the "asciisvg" toolbar button.
var oAsciiSvgItem = new FCKToolbarButton( 'asciisvg', FCKLang['DlgAsciiSvg'] ) ;

@ -7,37 +7,46 @@
// For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
//NOTE: Does not include Replace because it is redundant, being in the same tab to Find
//TODO: DocProps, ASCIIMath don't run ok here.
// Hide/show SpellCheck buttom
if ((api_get_setting('allow_spellcheck') == 'true')) {
$VSpellCheck='SpellCheck';
}
else{
$VSpellCheck='';
}
// This is the visible toolbar set when the editor has "normal" size.
$config['ToolbarSets']['Normal'] = array(
array('Save','FitWindow','PasteWord','-','Undo','Redo'),
array('Link','Unlink','Anchor'),
array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex'),
array('Table','SpecialChar'),
array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('Bold','Italic','Underline'),
array('JustifyLeft','JustifyCenter','JustifyRight')
array('Save','NewPage','Templates','-','PasteWord'),
array('Undo','Redo'),
array('Link','Image','flvPlayer','Table','mimetex'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('FitWindow')
);
// 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','-','Save','NewPage','Preview'),
array('Cut','Copy','Paste','PasteText','PasteWord','-','Print'),
array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
array('Link','Unlink','Anchor'),
'/',
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'),
array('OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Rule','SpecialChar'),
array('Image','imgmapPopup','Flash','MP3','EmbedMovies','flvPlayer','YouTube','googlemaps','Smiley'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('TextColor','BGColor'),
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp'),
array('ShowBlocks','Source')
array('Save','NewPage','Templates','-','Preview','Print'),
array('Cut','Copy','Paste','PasteText','PasteWord'),
array('Undo','Redo','-','SelectAll','Find','-','RemoveFormat'),
array('Link','Unlink','Anchor','Glossary'),
array('Image','imgmapPopup','flvPlayer','EmbedMovies','YouTube','Flash','MP3','googlemaps','Smiley','SpecialChar','insertHtml','mimetex','fckeditor_wiris_openFormulaEditor','fckeditor_wiris_openCAS'),
'/',
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp','-','CreateDiv'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent','Blockquote'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor'),
array($VSpellCheck),
array('Style','FontFormat','FontName','FontSize'),
array('PageBreak','ShowBlocks','Source'),
array('FitWindow')
);
// Sets whether the toolbar can be collapsed/expanded or not.

@ -7,38 +7,47 @@
// For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
//NOTE: Does not include Replace because it is redundant, being in the same tab to Find
//TODO: DocProps, ASCIIMath don't run ok here.
//NOTE: ONLY FOR TEACHERS: source, insert html
// Hide/show SpellCheck buttom
if ((api_get_setting('allow_spellcheck') == 'true')) {
$VSpellCheck='SpellCheck';
}
else{
$VSpellCheck='';
}
// This is the visible toolbar set when the editor has "normal" size.
$config['ToolbarSets']['Normal'] = array(
array('Save','FitWindow','PasteWord','-','Undo','Redo'),
array('Link','Unlink','Anchor'),
array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex'),
array('Table','SpecialChar'),
array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('Bold','Italic','Underline'),
array('JustifyLeft','JustifyCenter','JustifyRight'),
array('ShowBlocks')
array('Save','NewPage','Templates','-','PasteWord'),
array('Undo','Redo'),
array('Link','Image','flvPlayer','Table','mimetex'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('FitWindow')
);
// 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','-','Save','NewPage','Preview'),
array('Save','NewPage','Templates','-','Preview','Print'),
array('Cut','Copy','Paste','PasteText','PasteWord'),
array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
array('Link','Unlink','Anchor'),
'/',
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'),
array('OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Rule','SpecialChar'),
array('Image','imgmapPopup','Flash','MP3','EmbedMovies','flvPlayer','googlemaps','Smiley'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('TextColor','BGColor'),
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp'),
array('ShowBlocks')
array('Undo','Redo','-','SelectAll','Find','-','RemoveFormat'),
array('Link','Unlink','Anchor','Glossary'),
array('Image','imgmapPopup','flvPlayer','EmbedMovies','YouTube','Flash','MP3','googlemaps','Smiley','SpecialChar','mimetex','fckeditor_wiris_openFormulaEditor','fckeditor_wiris_openCAS'),
'/',
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp','-','CreateDiv'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent','Blockquote'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor'),
array($VSpellCheck),
array('Style','FontFormat','FontName','FontSize'),
array('PageBreak','ShowBlocks'),
array('FitWindow')
);
// Sets whether the toolbar can be collapsed/expanded or not.

@ -23,7 +23,7 @@ $config['ToolbarSets']['Normal'] = array(
array('Save','NewPage','Templates','-','PasteWord'),
array('Undo','Redo'),
array('Link','Image','flvPlayer','Table','mimetex','asciimath'),
array('UnorderedList','OrderedList','Rule'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('FitWindow')

@ -9,6 +9,7 @@
//NOTE: Does not include Replace because it is redundant, being in the same tab to Find
//TODO: DocProps, fckeditor_wiris_openFormulaEditor,fckeditor_wiris_openCAS don't run ok here.
//NOTE: ONLY FOR TEACHERS: source, insert html
// Hide/show SpellCheck buttom
if ((api_get_setting('allow_spellcheck') == 'true')) {
@ -23,7 +24,7 @@ $config['ToolbarSets']['Normal'] = array(
array('Save','NewPage','Templates','-','PasteWord'),
array('Undo','Redo'),
array('Link','Image','flvPlayer','Table','mimetex','asciimath'),
array('UnorderedList','OrderedList','Rule'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('FitWindow')

@ -7,37 +7,46 @@
// For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
//NOTE: Does not include Replace because it is redundant, being in the same tab to Find
//TODO: DocProps, asciimath don't run ok here. Templates loses styles
// Hide/show SpellCheck buttom
if ((api_get_setting('allow_spellcheck') == 'true')) {
$VSpellCheck='SpellCheck';
}
else{
$VSpellCheck='';
}
// This is the visible toolbar set when the editor has "normal" size.
$config['ToolbarSets']['Normal'] = array(
array('NewPage','FitWindow','-','PasteWord','-','Undo','Redo','-','SelectAll'),
array('Link','Unlink','Anchor'),
array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex'),
array('Table','SpecialChar'),
array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('Bold','Italic','Underline'),
array('JustifyLeft','JustifyCenter','JustifyRight')
array('Save','NewPage','Templates','-','PasteWord'),
array('Undo','Redo'),
array('Link','Image','flvPlayer','Table','mimetex'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('FitWindow')
);
// 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','Save','NewPage','Preview'),
array('Cut','Copy','Paste','PasteText','PasteWord','-','Print'),
array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
array('Link','Unlink','Anchor'),
'/',
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'),
array('OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Rule','SpecialChar'),
array('Image','imgmapPopup','Flash','MP3','EmbedMovies','flvPlayer','YouTube','googlemaps','Smiley'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('TextColor','BGColor'),
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp'),
array('ShowBlocks','Source')
array('Save','NewPage','Templates','-','Preview','Print'),
array('Cut','Copy','Paste','PasteText','PasteWord'),
array('Undo','Redo','-','SelectAll','Find','-','RemoveFormat'),
array('Link','Unlink','Anchor','Glossary'),
array('Image','imgmapPopup','flvPlayer','EmbedMovies','YouTube','Flash','MP3','googlemaps','Smiley','SpecialChar','insertHtml','mimetex','fckeditor_wiris_openFormulaEditor','fckeditor_wiris_openCAS'),
'/',
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp','-','CreateDiv'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent','Blockquote'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor'),
array($VSpellCheck),
array('Style','FontFormat','FontName','FontSize'),
array('PageBreak','ShowBlocks','Source'),
array('FitWindow')
);
// Sets whether the toolbar can be collapsed/expanded or not.

@ -7,37 +7,46 @@
// For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
//NOTE: Does not include Replace because it is redundant, being in the same tab to Find
//TODO: DocProps, ASCIIMath don't run ok here.
// Hide/show SpellCheck buttom
if ((api_get_setting('allow_spellcheck') == 'true')) {
$VSpellCheck='SpellCheck';
}
else{
$VSpellCheck='';
}
// This is the visible toolbar set when the editor has "normal" size.
$config['ToolbarSets']['Normal'] = array(
array('Save','FitWindow','-','PasteWord','-','Undo','Redo'),
array('Link','Unlink','Anchor'),
array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex'),
array('Table','SpecialChar'),
array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','-','Source'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('Bold','Italic','Underline'),
array('JustifyLeft','JustifyCenter','JustifyRight')
array('Save','NewPage','Templates','-','PasteWord'),
array('Undo','Redo'),
array('Link','Image','flvPlayer','Table','mimetex'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('FitWindow')
);
// 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','Save','NewPage','Preview'),
array('Cut','Copy','Paste','PasteText','PasteWord','-','Print'),
array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
array('Link','Unlink','Anchor'),
'/',
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'),
array('OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Rule','SpecialChar'),
array('mimetex','Image','imgmapPopup','Flash','MP3','EmbedMovies','flvPlayer','YouTube','googlemaps','Smiley'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('TextColor','BGColor'),
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp'),
array('ShowBlocks','Source')
array('Save','NewPage','Templates','-','Preview','Print'),
array('Cut','Copy','Paste','PasteText','PasteWord'),
array('Undo','Redo','-','SelectAll','Find','-','RemoveFormat'),
array('Link','Unlink','Anchor','Glossary'),
array('Image','imgmapPopup','flvPlayer','EmbedMovies','YouTube','Flash','MP3','googlemaps','Smiley','SpecialChar','insertHtml','mimetex','fckeditor_wiris_openFormulaEditor','fckeditor_wiris_openCAS'),
'/',
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp','-','CreateDiv'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent','Blockquote'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor'),
array($VSpellCheck),
array('Style','FontFormat','FontName','FontSize'),
array('PageBreak','ShowBlocks','Source'),
array('FitWindow')
);
// Sets whether the toolbar can be collapsed/expanded or not.

@ -7,40 +7,48 @@
// For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
//NOTE: Does not include Replace because it is redundant, being in the same tab to Find
//TODO: DocProps, ASCIIMath don't run ok here.
//NOTE: ONLY FOR TEACHERS: source, insert html
// Hide/show SpellCheck buttom
if ((api_get_setting('allow_spellcheck') == 'true')) {
$VSpellCheck='SpellCheck';
}
else{
$VSpellCheck='';
}
// This is the visible toolbar set when the editor has "normal" size.
$config['ToolbarSets']['Normal'] = array(
array('Save','FitWindow','-','PasteWord','-','Undo','Redo'),
array('Link','Unlink','Anchor'),
array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex'),
array('Table','SpecialChar'),
array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('Bold','Italic','Underline'),
array('JustifyLeft','JustifyCenter','JustifyRight'),
array('ShowBlocks')
array('Save','NewPage','Templates','-','PasteWord'),
array('Undo','Redo'),
array('Link','Image','flvPlayer','Table','mimetex'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('FitWindow')
);
// 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','Save','NewPage','Preview'),
array('Save','NewPage','Templates','-','Preview','Print'),
array('Cut','Copy','Paste','PasteText','PasteWord'),
array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
array('Link','Unlink','Anchor'),
'/',
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'),
array('OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Rule','SpecialChar'),
array('mimetex','Image','imgmapPopup','Flash','MP3','EmbedMovies','flvPlayer','googlemaps','Smiley'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('TextColor','BGColor'),
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp'),
array('ShowBlocks')
array('Undo','Redo','-','SelectAll','Find','-','RemoveFormat'),
array('Link','Unlink','Anchor','Glossary'),
array('Image','imgmapPopup','flvPlayer','EmbedMovies','YouTube','Flash','MP3','googlemaps','Smiley','SpecialChar','mimetex','fckeditor_wiris_openFormulaEditor','fckeditor_wiris_openCAS'),
'/',
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp','-','CreateDiv'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent','Blockquote'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor'),
array($VSpellCheck),
array('Style','FontFormat','FontName','FontSize'),
array('PageBreak','ShowBlocks'),
array('FitWindow')
);
// Sets whether the toolbar can be collapsed/expanded or not.
// Possible values: true , false
//$config['ToolbarCanCollapse'] = true;

@ -7,37 +7,46 @@
// For more information: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Configuration_Options
//NOTE: Does not include Replace because it is redundant, being in the same tab to Find
//TODO: DocProps, asciimath, don't run ok here. Templates loses styles
// Hide/show SpellCheck buttom
if ((api_get_setting('allow_spellcheck') == 'true')) {
$VSpellCheck='SpellCheck';
}
else{
$VSpellCheck='';
}
// This is the visible toolbar set when the editor has "normal" size.
$config['ToolbarSets']['Normal'] = array(
array('NewPage','Save','FitWindow','PasteWord','-','Undo','Redo'),
array('Link','Unlink','Anchor'),
array('Image','flvPlayer','Flash','EmbedMovies','YouTube','MP3','mimetex'),
array('Table','SpecialChar'),
array('OrderedList','UnorderedList','-','Outdent','Indent','-','TextColor','BGColor','Source'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('Bold','Italic','Underline'),
array('JustifyLeft','JustifyCenter','JustifyRight')
array('Save','NewPage','Templates','-','PasteWord'),
array('Undo','Redo'),
array('Link','Image','flvPlayer','Table','mimetex'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('FitWindow')
);
// 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','Save','NewPage','Preview'),
array('Cut','Copy','Paste','PasteText','PasteWord','-','Print'),
array('Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'),
array('Link','Unlink','Anchor'),
'/',
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'),
array('OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Rule','SpecialChar'),
array('Image','imgmapPopup','Flash','MP3','EmbedMovies','flvPlayer','YouTube','googlemaps','Smiley'),
'/',
array('Style','FontFormat','FontName','FontSize'),
array('TextColor','BGColor'),
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp'),
array('ShowBlocks','Source')
array('Save','NewPage','Templates','-','Preview','Print'),
array('Cut','Copy','Paste','PasteText','PasteWord'),
array('Undo','Redo','-','SelectAll','Find','-','RemoveFormat'),
array('Link','Unlink','Anchor','Glossary'),
array('Image','imgmapPopup','flvPlayer','EmbedMovies','YouTube','Flash','MP3','googlemaps','Smiley','SpecialChar','insertHtml','mimetex','fckeditor_wiris_openFormulaEditor','fckeditor_wiris_openCAS'),
'/',
array('Table','TableInsertRowAfter','TableDeleteRows','TableInsertColumnAfter','TableDeleteColumns','TableInsertCellAfter','TableDeleteCells','TableMergeCells','TableHorizontalSplitCell','TableVerticalSplitCell','TableCellProp','-','CreateDiv'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent','Blockquote'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript','-','TextColor','BGColor'),
array($VSpellCheck),
array('Style','FontFormat','FontName','FontSize'),
array('PageBreak','ShowBlocks','Source'),
array('FitWindow')
);
// Sets whether the toolbar can be collapsed/expanded or not.

@ -24,7 +24,7 @@ $config['ToolbarSets']['Normal'] = array(
array('Save','NewPage','Templates','-','PasteText'),
array('Undo','Redo'),
array('Wikilink','Link','Image','flvPlayer','Table','mimetex'),
array('UnorderedList','OrderedList','Rule'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('FitWindow')

@ -25,7 +25,7 @@ $config['ToolbarSets']['Normal'] = array(
array('Save','NewPage','Templates','-','PasteText'),
array('Undo','Redo'),
array('Wikilink','Link','Image','flvPlayer','Table','mimetex'),
array('UnorderedList','OrderedList','Rule'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('FontFormat','FontName','FontSize','Bold','Italic','Underline','TextColor','BGColor'),
array('FitWindow')

@ -24,7 +24,7 @@ $config['ToolbarSets']['Normal'] = array(
array('NewPage','Templates','-','PasteText'),
array('Undo','Redo'),
array('Link','Image','flvPlayer','Table','mimetex'),
array('UnorderedList','OrderedList','Rule'),
array('UnorderedList','OrderedList','Rule','-','Outdent','Indent'),
array('JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'),
array('FontFormat','FontName','Bold','Italic','Underline','TextColor','BGColor'),
array('FitWindow')

@ -8,7 +8,7 @@ $langDeactivate = "Дезактивиране";
$langNoEx = "Засега няма тестове.";
$langNewEx = "Нов тест";
$langQuestion = "Въпрос";
$langQuestions = "Въпроса";
$langQuestions = "Въпроси";
$langAnswers = "Отговори";
$langTrue = "Вярно";
$langAnswer = "Отговор";

@ -227,4 +227,5 @@ $Draw = "Draw";
$FileExistsChangeToSave = "This file name already exists, choose another to save your image.";
$FileSavedAs = "File saved as";
$FileExportAs = "File export as";
$UserFolder = "User folder";
?>

@ -5,7 +5,7 @@ for more information: see languages.txt in the lang folder.
$langStatDB = "Tracking DB.";
$langEnableTracking = "Enable Tracking";
$langInstituteShortName = "Your company short name";
$langWarningResponsible = "Use this script only after backup. Chamilo team is not responsible if you lost or corrupted data";
$langWarningResponsible = "Use this script only after backup. The Chamilo team is not responsible for lost or corrupted data.";
$langAllowSelfRegProf = "Allow self-registration as a trainer";
$langEG = "ex.";
$langDBHost = "Database Host";

@ -973,4 +973,5 @@ $FillWithExemplaryContent = "Fill with exemplary content";
$ToolVideoconference = "Videoconference";
$SelectSVGEditImage = "Select a picture";
$OnlyAccessFromYourGroup = "Only accessible from your group";
$UserFolders = "Folders of users";
?>

@ -227,4 +227,5 @@ $Draw = "Dibujar";
$FileExistsChangeToSave = "Este nombre de archivo ya existe, escoja otro para guardar su imagen.";
$FileSavedAs = "Archivo guardado como";
$FileExportAs = "Archivo exportado como";
$UserFolder = "Carpeta del usuario";
?>

@ -974,4 +974,5 @@ $FillWithExemplaryContent = "Rellenar con contenido de ejemplo";
$ToolVideoconference = "Videoconferencia";
$SelectSVGEditImage = "Selecciones una imagen (svg, png)";
$OnlyAccessFromYourGroup = "Sólo accesible desde su grupo";
$UserFolders = "Carpetas de los usuarios";
?>
Loading…
Cancel
Save