Empty p tags removed on save
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.
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Penny on 15 Mar, 2012 03:08 PM
Hi,
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!
Tim closed this discussion on 17 May, 2012 12:59 PM.