From 59f543e1963f999d43d540e7982b22682bd6f424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9=20GDSOFT?= Date: Wed, 6 Jul 2022 18:21:33 +0200 Subject: [PATCH] utilisation du doleditor pour l'edition du corps du mail --- fiche-rec-tab1.php | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/fiche-rec-tab1.php b/fiche-rec-tab1.php index 4d55f06..de2b8f8 100644 --- a/fiche-rec-tab1.php +++ b/fiche-rec-tab1.php @@ -147,7 +147,7 @@ do { $mailObject->sendcc_thirdparty = in_array('thirdparty', GETPOST('sendcc_socpeople', 'array')); $mailObject->subject = GETPOST('subject', 'alpha'); - $mailObject->body = GETPOST('body', 'alpha'); + $mailObject->body = GETPOST('body', 'restricthtml'); $mailObject->body_ishtml = (int)GETPOST('body_ishtml', 'int'); // Save into database @@ -300,16 +300,15 @@ do { $output .= ''; $output .= $form->textwithpicto($langs->trans("MailText"), $helpforsubstitution, 1, 'help', '', 0, 2, 'substittooltipfrombody'); $output .= "\n"; - /* - // doleditor does some weird stuff, adding
and newlines, I'll get more into it when I have time. - // fallback to simple \n"; + + // $output .= '\n"; $output .= "\n"; // body_ishtml @@ -337,4 +336,4 @@ do { // Print everything llxHeader('', $langs->trans('RepeatableInvoice') . ' - ' . $langs->trans('SendingByMail'), ''); print $output; -llxFooter(); +llxFooter(); \ No newline at end of file