Merge pull request #28984 from rycks/18_fix_ticket_plain_text_editor

replace br to new lines if ckeditor is not enabled on ticket
This commit is contained in:
Laurent Destailleur 2024-03-20 10:54:30 +01:00 committed by GitHub
commit d390d9aa8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -216,6 +216,9 @@ class ActionsTicket extends CommonHookActions
include_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
$uselocalbrowser = true;
$ckeditorenabledforticket = getDolGlobalString('FCKEDITOR_ENABLE_TICKET');
if (!$ckeditorenabledforticket) {
$msg = dol_string_nohtmltag($msg, 2);
}
$doleditor = new DolEditor('message_initial', $msg, '100%', 250, 'dolibarr_details', 'In', true, $uselocalbrowser, $ckeditorenabledforticket, ROWS_9, '95%');
$doleditor->Create();
} else {