1

In CKEditor, source view, I see <p> tags around my paragraphs. That's great, makes sense. However when I view the node, the <p> tags are gone, replaced with <br> tags, thus killing the margins and cramming everything together. Re-editing the node brings the <p> tags back again in CKEditor.

I have tried changing the text format to disable "Convert line breaks into HTML", but of course that just removed both <p> and <br> tags, making one huge paragraph.

How do I prevent this and preserve the <p> tags?

3
  • 1
    Ah, I found it. In /admin/config/content/formats/filtered_html, I needed to add &lt;p> to the list of allowed HTML tags way at the bottom of the page. I'm not sure how/why this problem didn't show up previously...but this fixed it.
    – Josh
    Commented Sep 23, 2012 at 20:24
  • 1
    Josh, you can answer your own questions here. Put that as an answer, and you can mark it as the 'accepted' answer (so people can see this question has been answered), and then people who find your answer useful can upvote it, getting you points :) Commented Sep 23, 2012 at 23:29
  • I wasn't able to at the time, then I forgot about it...
    – Josh
    Commented Sep 25, 2012 at 10:46

1 Answer 1

2

Ah, I found it. In /admin/config/content/formats/filtered_html, I needed to add <p> to the list of allowed HTML tags way at the bottom of the page. I'm not sure how/why this problem didn't show up previously...but this solved it.

1
  • 1
    and again i have to wait 9 hours...sigh...
    – Josh
    Commented Sep 25, 2012 at 10:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.