Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The body field is configured with the following settings.
WYSIWYG TinyMCE 3.5.8
Full HTML markItUp 1.1.14
Pressing Enter in WYSIWYG profile produces a <p>
tag which is fine. But when i switch to Full HTML and enter <br><br>
it gets rendered as <p>
tag. Is this a default behavior of WYSIWYG editor or a bug?
For eg:
<br><br>
[ Adding break tags here] <br><br>
I also help organise
get rendered as <p>
[ Adding break tags here] </p>
Also checked the same with WYSIWYG with CKEditor. It also have the same behavior.
Comments
Comment #1
imalabyaComment #2
TwoDI think most of the popular editors automatically convert double linebreaks to a paragraph. It's not a behavior which Wysiwyg itself controls or changes in any way.
There's probably not much we can do about this, other than try to play around with the editor settings by implementing hook_wysiwyg_editor_settings_alter(). (see wysiwyg.api.php).
Comment #3
apaderno