Using WordPress with the TinyMCE advanced plugin, if you view your content in the html editor all the p and br tags are stripped away by default.
If you are used to working with ‘proper’ html you probably won’t like that.
You can get your p’s and br’s to display again by checking ‘Stop removing the <p> and <br /> tags when saving and show them in the HTML editor’, on the tinyMCE settings screen.
However you will probably start to find nasty unwanted white spaces appearing all over your pages:
<p><br class="spacer_" /></p>
has been inserted all over the place, seemingly at random.
I can’t find a way to stop this happening (trying to hack TinyMCE is beyond me) but the following jquery at least hides the unwanted empty lines.
$("p br.spacer_").each(function () {
$(this).parent().addClass('displayNone');
});
where the displayNone class hides the p.
If you do want an empty paragraph somewhere on the page, use
<p> </p>
and the jquery won’t hide it.