Jump to content

CTEDitor creating empty paragraphs


josua118
 Share

Recommended Posts

Hello all, all my body tags with cteditor create one empty paragraph before and one after the content that I have written. So then it looks like:
<p></p>
<p>My actual content</p>
<p></p>

In the field settings I checked the option "removing empty paragraphs" but than doesn't change anything. This Option propably only works for markup you create inside the body field.

Thanks for your help.

Link to comment
Share on other sites

7 hours ago, louisstephens said:

Hey josua118, and welcome to the forums! Quick question for you, how are you rendering the field on the frontend?

@josua118 Shooting in the dark: are you maybe doing something like <p><?php echo $page->body ?></p> ?

You do not have to surround it with a p tag, simply use <?php echo $page->body; ?> instead.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...