Empty p tags removed on save

PC's Avatar


23 Feb, 2011 10:32 PM

In the WYSIWYG editor, if an empty paragraph is created by using the enter key, the paragraph is removed on saving the asset. Is there a way around this. We are on version 6.7.5 if it helps. I know we could use the shift+enter option to create a break but that isn't a good solution because a style applied to the paragraph would then affect the space occupied by the breaks as well.

  1. 1 Posted by Penny on 15 Mar, 2012 03:08 PM

    Penny's Avatar


    According to W3 standards:
    "We discourage authors from using empty P elements. User agents should ignore empty P elements."

    This seems to be a product of TidyHTML. If I turn off Tidy, I am able to save an empty p tag as long as that is not the only thing in the WYSIWYG and it will insert a space into my empty p tag.

    If this is still a development issue, I would recommend using a text/xml block. Otherwise, I would recommend not using an empty p tag based on different rendering behaviors on various internet browsers.

    I hope this helps!

  2. Tim closed this discussion on 17 May, 2012 12:59 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac