How to disable <p> tags in the mail body editor?

MauriceW

Member
The CKEditor in MailWIzz messes up my email content by adding P tags everywhere automatically.

How can I disable this behavior?

I only want <br> tags when I hit Enter or Shift+Enter.
 
The CKEditor in MailWIzz messes up my email content by adding P tags everywhere automatically.

How can I disable this behavior?

I only want <br> tags when I hit Enter or Shift+Enter.
You can set option: Only plain text > Yes in campaign template and then you can add your text there.

Your template will have only <br> tags if this option is enabled.
Screenshot 2023-11-06 at 18.40.47.png
 
You can set option: Only plain text > Yes in campaign template and then you can add your text there.

Your template will have only <br> tags if this option is enabled.
View attachment 19197

That's not what I want. I DO want the visual HTML (not text only) editor. But when I fill in text and hit enter to go to the next line, the editor adds P tags instead of BR tags.
 
Last edited:
@MauriceW - where exactly? Because MailWizz uses
Code:
config.enterMode = CKEDITOR.ENTER_BR;
for ckeditor.
In the visual HTML editor.

Is this code to be inserted in: /apps/common/extensions/ckeditor/common/assets/ckeditor/config.js ?

Edit: Oh, I just checked that file. It already has that line in it. Apparently it's not working.
 
For me it didn't work (???)

But after I added this second line it did seem to work for me as well:

config.shiftEnterMode = CKEDITOR.ENTER_BR;
 
Back
Top