diff --git a/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php b/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php index 2dff205a86d62..29f3535c17d48 100644 --- a/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php +++ b/plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php @@ -464,10 +464,10 @@ public function display(string $name, string $content = '', array $attributes = if ($levelParams->get('newlines')) { // Break - $scriptOptions['force_br_newlines'] = true; + $scriptOptions['newline_behavior'] = 'invert'; } else { // Paragraph - $scriptOptions['force_br_newlines'] = false; + $scriptOptions['newline_behavior'] = 'default'; $scriptOptions['forced_root_block'] = 'p'; }