Skip to content

Commit

Permalink
Fix broken new lines cleaning on TinyMCE
Browse files Browse the repository at this point in the history
fixes #13202
fixes #13205
  • Loading branch information
cedric-anne authored and trasher committed Nov 7, 2022
1 parent b82b650 commit ade4d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/html.class.php
Expand Up @@ -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) {
Expand Down

0 comments on commit ade4d2e

Please sign in to comment.