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:
commit
d390d9aa8a
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue