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) {