6
Views
1
Comments
[Tiny Rich Text Editor 7] feature request: be able to set newline_behavior
tiny-rich-text-editor-7
Reactive icon
Forge asset by Lucas Soares
Application Type
Reactive

Hi Lucas,

We are currently migrating from the CKEditor 4 to Tiny Rich Text Editor.

In the (old) CKEditor, newline behaviour was: pressing enter creates a <br> element in the HTML/rich text. However in TinyMCE the default behaviour is: pressing enter creates a <p> element.

This creates a problem for our use case, however I found the following solution in the TinyMCE docs:

newline_behaviour can be set to 'linebreak'
https://www.tiny.cloud/docs/tinymce/7/content-behavior-options/#newline_behavior

Would you consider adding this as an input parameter option for the TinyMCE webblock?
Perhaps as boolean input parameter, maintaining either the default <p> behaviour or the other <br> behaviour.


2026-02-26 06-29-24
Rahul
 
MVP

Hi @Steven de Jong ,

sure we will look into it and update.
But you can create a clone of it and update accordingly for your need.


Regards

Rahul

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.