diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index 7283f9c9db5ea9985b9306584570a992d60cf248..8ee8b791303202b21f8e90d6fb62b68e02260dad 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -1593,7 +1593,9 @@ function fieldList($fieldlist, $obj='', $tabname='', $context='') if ($context != 'hide') { //print '<textarea cols="3" rows="'.ROWS_2.'" class="flat" name="'.$fieldlist[$field].'">'.(! empty($obj->{$fieldlist[$field]})?$obj->{$fieldlist[$field]}:'').'</textarea>'; - $doleditor = new DolEditor($fieldlist[$field], (! empty($obj->{$fieldlist[$field]})?$obj->{$fieldlist[$field]}:''), '', 140, 'dolibarr_mailings', 'In', 0, false, true, ROWS_5, '90%'); + $okforextended=true; + if ($tabname == MAIN_DB_PREFIX.'c_email_templates' && empty($conf->global->FCKEDITOR_ENABLE_MAIL)) $okforextended=false; + $doleditor = new DolEditor($fieldlist[$field], (! empty($obj->{$fieldlist[$field]})?$obj->{$fieldlist[$field]}:''), '', 140, 'dolibarr_mailings', 'In', 0, false, $okforextended, ROWS_5, '90%'); print $doleditor->Create(1); } else print ' '; diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index eb8e7cf868c4ea4d074912736ff95af690b4a98e..49b4e6af288934cad3926fe427e126f40dbc0c33 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -952,7 +952,7 @@ class FormMail extends Form '__PROJECT_REF__', '__PROJECT_NAME__', '__CONTACTCIVNAME__', - '__PERSONALIZED__', // Paypal link is added here + '__PERSONALIZED__', // Paypal link will be added here in form mode '__SIGNATURE__', ); }