From 778fab97da274f1bc5748abf6ac2f3176302b19c Mon Sep 17 00:00:00 2001 From: Julian Prud'homme Date: Mon, 15 Jan 2007 13:56:39 +0100 Subject: [PATCH] [svn r10726] set correct toolbar to fckeditor in profile --- main/auth/profile.php | 18 +++++++++++------- main/inc/lib/fckeditor/myconfig.js | 4 ++++ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/main/auth/profile.php b/main/auth/profile.php index d09906ae04..eac7a2eb7e 100644 --- a/main/auth/profile.php +++ b/main/auth/profile.php @@ -1,5 +1,5 @@ addElement('static', null, ''.get_lang('OptionalTextFields').''); // MY COMPETENCES - $form->addElement('textarea', 'competences', get_lang('MyCompetences'), array('cols' => 30, 'rows' => 2)); - + $form->add_html_editor('competences', get_lang('MyCompetences'), false); + // MY DIPLOMAS - $form->addElement('textarea', 'diplomas', get_lang('MyDiplomas'), array('cols' => 30, 'rows' => 2)); - + $form->add_html_editor('diplomas', get_lang('MyDiplomas'), false); + // WHAT I AM ABLE TO TEACH - $form->addElement('textarea', 'teach', get_lang('MyTeach'), array('cols' => 30, 'rows' => 2)); - + $form->add_html_editor('teach', get_lang('MyTeach'), false); + // MY PRODUCTIONS $form->addElement('file', 'production', get_lang('MyProductions')); if ($production_list = build_production_list($_user['user_id'])) diff --git a/main/inc/lib/fckeditor/myconfig.js b/main/inc/lib/fckeditor/myconfig.js index bd116f8f41..a7ab6f1cc3 100644 --- a/main/inc/lib/fckeditor/myconfig.js +++ b/main/inc/lib/fckeditor/myconfig.js @@ -24,6 +24,10 @@ FCKConfig.ToolbarSets["Small"] = [ ['Bold','Italic','Underline','StrikeThrough','Link','ImageManager','Flash','OrderedList','UnorderedList','Table'] ] ; +FCKConfig.ToolbarSets["Profil"] = [ + ['Bold','Italic','Underline','StrikeThrough','Link','OrderedList','UnorderedList'] +] ; + FCKConfig.ToolbarSets["Blog"] = [ ['Bold','Italic','Underline','StrikeThrough','Link','ImageManager','OrderedList','UnorderedList','Table'] ] ;