Jelajahi Sumber

[svn r18114] FS#2867 - Adding settings for the FCKEditor for introduction sections, Glossary and Notebook tools.

Ivan Tcholakov 16 tahun lalu
induk
melakukan
1e85ff2767
2 mengubah file dengan 16 tambahan dan 2 penghapusan
  1. 8 1
      main/glossary/index.php
  2. 8 1
      main/notebook/index.php

+ 8 - 1
main/glossary/index.php

@@ -31,8 +31,15 @@ $tool = TOOL_GLOSSARY;
 Display::display_header(get_lang(ucfirst($tool)));
 
 // tool introduction
+
+$fck_attribute['Width'] = '100%';
+$fck_attribute['Height'] = '400';
+$fck_attribute['ToolbarSet'] = 'Full';
+
 Display::display_introduction_section(TOOL_GLOSSARY,'left');
 
+$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
+
 // action links
 echo '<div class="actions">';
 if (api_is_allowed_to_edit())
@@ -571,4 +578,4 @@ function move_glossary($direction, $glossary_id)
 	$sql2 = "UPDATE $t_glossary SET display_order = '".Database::escape_string($current_display_order)."' WHERE glossary_id = '".Database::escape_string($next_id)."'";
 	$res = api_sql_query($sql1, __FILE__, __LINE__);
 	$res = api_sql_query($sql2, __FILE__, __LINE__);
-}
+}

+ 8 - 1
main/notebook/index.php

@@ -33,8 +33,15 @@ $tool = TOOL_NOTEBOOK;
 Display::display_header(get_lang(ucfirst($tool)));
 
 // tool introduction
+
+$fck_attribute['Width'] = '100%';
+$fck_attribute['Height'] = '400';
+$fck_attribute['ToolbarSet'] = 'Full';
+
 Display::display_introduction_section(TOOL_NOTEBOOK,'left');
 
+$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
+
 // action links
 echo '<div class="actions">';
 //if (api_is_allowed_to_edit())
@@ -273,4 +280,4 @@ function display_notes()
 	}
 	return $return;	
 }
-?>
+?>