The CKEditor automatically places empty paragraph tags above tables. While I'm able to go into the source and delete the ones between other tables, when I try to delete the one at the top of the page before the first table, it automatically reinserts it when I edit the page again. Is there anyway to alter the editor so that these empty paragraph tags are not automatically inserted?
<p> </p> <table border="0" cellpadding="2" cellspacing="2" style="width: 540px" width="540"> <tbody> <tr> <td> <p style="text-align: center">
Re: Empty Paragraph Tags at beginning of Page/Table
Re: Empty Paragraph Tags at beginning of Page/Table
Re: Empty Paragraph Tags at beginning of Page/Table
I've noticed it only occurs when startupFocus is enabled. Issue occurs in latest version (3.5.2) in IE8, IE9, and Chrome.
Firefox 3.6.15 appears to correctly place initial focus in the first cell of the table.
Re: Empty Paragraph Tags at beginning of Page/Table
Re: Empty Paragraph Tags at beginning of Page/Table
See http://docs.cksource.com/ckeditor_api/s ... oParagraph
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: Empty Paragraph Tags at beginning of Page/Table
My template code is:
And the output code looks like this:
These extra paragraph tags are driving me crazy because they are a real problem for my users to control, especially since they only appear until the code is refreshed via either Source-toggling or page save.
Also, removing these <P> tags from within the visual editor DOES NOT remove them. When toggling the Source, they come right back. It's horribly frustrating, because this has been an issue since the inception of this editor and have never been properly address.
Re: Empty Paragraph Tags at beginning of Page/Table
Nothing here makes a difference. Still having <P> tags placed above and below template. I even attempted to wrap the entire table in a <div> tag, and <P> tags were STILL placed above and below. What am I missing here?!?!
Re: Empty Paragraph Tags at beginning of Page/Table
I am also having the exact same problem as ekazda. If anyone has any suggestions or hints, they would be very greatly appreciated.
This issue, bug or now I
This issue, bug or now I would already call it a feature, still persist after many, many years. I have a very simple HTML structure where I have floating elements. CKEditor with this feature thinks it is a great idea to add empty <p> </p> tags at the end of each closing element (fieldset) thus rendering my efforts to neatly float these items void.
I'm using Drupal 7.34 and I've added CKEditor 4.x to it. Every time I open to edit my page, I do not see these tags. Every time I submit my edit, these tags appear. Very simply:
After I submit the content and inspect the page structure:
This is not the CMS' fault. I've also seen this happen with Wordpress. It's CKEditor. I've tried adding the autoParagraph false with no effect. I will not accept changing <p> tags to <br> as a solution as it is a modern approach to good sites using CSS on p-element, not adding <br> as a paragraph break. You seriously cannot fix this?