From ade4d2e076f5b118aebce9095161dffc73376c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Anne?= Date: Mon, 7 Nov 2022 14:05:26 +0100 Subject: [PATCH] Fix broken new lines cleaning on TinyMCE fixes #13202 fixes #13205 --- inc/html.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/html.class.php b/inc/html.class.php index 8e1d99a9e44..f55b4e5d726 100644 --- a/inc/html.class.php +++ b/inc/html.class.php @@ -3972,7 +3972,7 @@ static function initEditorSystem($name, $rand = '', $display = true, $readonly = }); } - editor.on('SaveContent', function (contentEvent) { + editor.on('PostProcess', function (contentEvent) { contentEvent.content = contentEvent.content.replace(/\\r?\\n/g, ''); }); editor.on('Change', function (e) {