tinyMCE adding empty p tags to empty meta fields
-
I’m using wordpress (3.1.3) with the tinyMCE advanced plugin (3.3.9.2) with ‘stop removing p tags etc.’ checked in the settings.
I have meta-fields added to some pages by the templ33t plugin (based on page.ly multi edit) to give me extra editable content fields.
When I add content to a meta-field, then delete it, it leaves <p><br _mce_boges=”1″></p> in the editor, when I subsequently delete these entities, they appear to be gone in the editor, but still show up when the page is served.
I don’t understand why I cannot clear out my text field completely and leave it blank. The reason this is a problem is that I have a styled <p> class that has a background, so where a blank <p> is being being displayed on the page, it has a background to it which is breaking my design.
Example here: (Excuse the f*cked formatting, it truly is my dev site) https://www.modifiedforhunting.com/boo/t/ – the grey borderless box on the left hand side should not be there, it is the spurious content from the supposedly empty meta-field.
Hi, i’m aware that this issue has been discussed at length in various places here, but I have not seen any solutions.
All I want to do is to be able to delete all content from a text field, I don’t see why there needs to be anything left in there for caret handling (I presume this is the reason the tags are inserted), it should never be selectable when empty.
Any suggestion gratefuly gratefuly received, thank you,
Zac
- The topic ‘tinyMCE adding empty p tags to empty meta fields’ is closed to new replies.