diff --git a/main/inc/lib/career.lib.php b/main/inc/lib/career.lib.php index 8b4cdafb01..f37564e76a 100644 --- a/main/inc/lib/career.lib.php +++ b/main/inc/lib/career.lib.php @@ -9,7 +9,7 @@ require_once 'model.lib.php'; require_once 'promotion.lib.php'; - +require_once 'fckeditor/fckeditor.php'; define ('CAREER_STATUS_ACTIVE', 1); define ('CAREER_STATUS_INACTIVE',0); @@ -70,6 +70,15 @@ class Career extends Model { * @return obj form validator obj */ public function return_form($url, $action) { + + $oFCKeditor = new FCKeditor('description') ; + $oFCKeditor->ToolbarSet = 'careers'; + $oFCKeditor->Width = '100%'; + $oFCKeditor->Height = '200'; + $oFCKeditor->Value = $message; + $oFCKeditor->CreateHtml(); + + $form = new FormValidator('career', 'post', $url); // Settting the form elements $header = get_lang('add'); @@ -80,8 +89,8 @@ class Career extends Model { $form->addElement('header', '', $header); $form->addElement('hidden', 'id',intval($_GET['id'])); $form->addElement('text', 'name', get_lang('Name'), array('size' => '70')); - $form->add_html_editor('description', get_lang('Description'), false, false, array('Width' => '95%', 'Height' => '250')); - $status_list = $this->get_status_list(); + $form->add_html_editor('description', get_lang('Description'), false, false, array('ToolbarSet' => 'careers','Width' => '100%', 'Height' => '250')); + $status_list = $this->get_status_list(); $form->addElement('select', 'status', get_lang('Status'), $status_list); if ($action == 'edit') { $form->addElement('text', 'created_at', get_lang('CreatedAt')); diff --git a/main/inc/lib/fckeditor/toolbars/default/careers.php b/main/inc/lib/fckeditor/toolbars/default/careers.php new file mode 100644 index 0000000000..d962b8968f --- /dev/null +++ b/main/inc/lib/fckeditor/toolbars/default/careers.php @@ -0,0 +1,53 @@ +