diff --git a/fiche-rec-tab1.php b/fiche-rec-tab1.php index de2b8f8..1e8ac04 100644 --- a/fiche-rec-tab1.php +++ b/fiche-rec-tab1.php @@ -300,15 +300,21 @@ do { $output .= ''; $output .= $form->textwithpicto($langs->trans("MailText"), $helpforsubstitution, 1, 'help', '', 0, 2, 'substittooltipfrombody'); $output .= "\n"; - + require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; - $doleditor = new DolEditor('body', (GETPOST('body', 'alpha') ? GETPOST('body', 'alpha') : $mailObject->body), '', 280,'dolibarr_notes'); + $doleditor = new DolEditor( + 'body', + (GETPOST('body', 'alpha') ? GETPOST('body', 'alpha') : $mailObject->body), + '', + 280, + 'dolibarr_mailings', // toolbar name + 'In', // toolbar location + false, // toolbar start expanded + true, // use local browser + !empty($conf->global->FCKEDITOR_ENABLE_MAIL) // follow global conf about using ckeditor for mails. + ); $output .= $doleditor->Create(1); - - // $output .= '\n"; $output .= "\n"; // body_ishtml @@ -336,4 +342,4 @@ do { // Print everything llxHeader('', $langs->trans('RepeatableInvoice') . ' - ' . $langs->trans('SendingByMail'), ''); print $output; -llxFooter(); \ No newline at end of file +llxFooter();