Browse Source

[svn r18436] config notebook buttons bar

Juan Carlos Raña 16 years ago
parent
commit
d8cdc859a9
1 changed files with 17 additions and 0 deletions
  1. 17 0
      main/notebook/index.php

+ 17 - 0
main/notebook/index.php

@@ -47,6 +47,23 @@ Display::display_introduction_section(TOOL_NOTEBOOK,'left');
 
 $fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
 
+
+// config notebook FckEditor buttons bar
+
+$fck_attribute['Width'] = '100%';
+$fck_attribute['Height'] = '400';
+
+if(!api_is_allowed_to_edit())
+{
+	$fck_attribute['Config']['UserStatus'] = 'student';
+	$fck_attribute['ToolbarSet'] = 'Notebook_Student';
+}
+else
+{
+	$fck_attribute['ToolbarSet'] = 'Notebook';
+}
+
+
 // action links
 echo '<div class="actions">';
 //if (api_is_allowed_to_edit())