From 85ee94b78065999940a7dc6af984bd8808f13986 Mon Sep 17 00:00:00 2001 From: ATM Irvine Date: Tue, 21 May 2024 17:30:15 +0200 Subject: [PATCH] FIX : CkEditor break line not supported --- htdocs/core/tpl/objectline_create.tpl.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/tpl/objectline_create.tpl.php b/htdocs/core/tpl/objectline_create.tpl.php index 42377634ff942..543516075206c 100644 --- a/htdocs/core/tpl/objectline_create.tpl.php +++ b/htdocs/core/tpl/objectline_create.tpl.php @@ -1074,7 +1074,8 @@ function(data) { { var editor = CKEDITOR.instances['dp_desc']; if (editor) { - editor.setData(description); + var formattedDescription = description.replace(/\n/g, '
'); + editor.setData(formattedDescription); } }