Hello all,

I compared two HTML mails with identical text regarding the line breaks (by simply 
pressing "Enter"):

(1) with Thunderbird:

--- snip ---
Hi,
<br>
foo<br>
bar<br>
<br>
foo bar<br>
<br>
ciao<br>
--- snip ---

(2) with SOGo (5.11.2):

--- snip ---
<p>Hi,</p>
<p>&nbsp;</p>
<p>foo</p>
<p>bar</p>
<p>&nbsp;</p>
<p>foo bar</p>
<p>&nbsp;</p>
<p>ciao</p>
<p>&nbsp;</p>
--- snip ---

(1) looks nice (and BTW: also an included signature), (2) in contrast IMHO quite 
ugly, the line spacing is way too much based on all these <p>.


I know that I can use "Shift+Enter" to get <br> instead of <p>, but that's not 
practical.

But even with "Shift+Enter": the entire content would still be wrapped with a paragraph. And so I don't know if the following would be possible at all:

I found that CKEditor should be configurable with something like

enterMode = CKEDITOR.ENTER_P

resp.

enterMode = CKEDITOR.ENTER_BR

to change it's behavior. But I don't know if this really (still) works as I 
also found this:

https://github.com/ckeditor/ckeditor5-angular/issues/244#issuecomment-777653445

"CKEditor 5 only supports soft breaks inside paragraphs and they can be done using shift + enter. It is not configurable like in previous versions."

Long story short: does anybody know if there's a way to configure SOGo/CKEditor 
to:

a) use <br> instead of <p> by pressing "Enter"
b) ideally remove the <p> wrapping around the entire mail body if using <br>

Thanks and regards,
Markus

Reply via email to