From d8cdc859a95ad9ea2a42bde3cdcddf155a95a38e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Ra=C3=B1a?= Date: Wed, 11 Feb 2009 17:22:53 +0100 Subject: [PATCH] [svn r18436] config notebook buttons bar --- main/notebook/index.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/main/notebook/index.php b/main/notebook/index.php index eb98f19db1..c85f7acf45 100755 --- a/main/notebook/index.php +++ b/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 '
'; //if (api_is_allowed_to_edit())