Skip to content

Commit

Permalink
[5.0][bug] TinyMCE Setting linebreak with doesn´t work (joomla#42227)
Browse files Browse the repository at this point in the history
* Update DisplayTrait.php

* Update plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php
  • Loading branch information
dgrammatiko authored Oct 28, 2023
1 parent 7e9bf08 commit b17a2ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit b17a2ed

Please sign in to comment.