Log in or register to post comments
Last post
Empty Paragraph Tags at beginning of Page/Table
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>
   &nbsp;</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
Looking for a solution to this problem as well. Just a note I've observed it seems to be more prevalent in IE7 although it will happen in IE8 and Firefox under certain (seemingly random) conditions.
Re: Empty Paragraph Tags at beginning of Page/Table
I'm hoping for a solution to this as well - Its 100% repeatable on Firefox 3.6.12 on Ubuntu, and is quite problematic for our users. As a workaround, I've set enterMode to CKEDITOR.ENTER_BR which actually stops the extra blank paras, but we'd like to avoid this if possible.
Re: Empty Paragraph Tags at beginning of Page/Table
I am also looking for resolution to this issue.

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
We are having the same issues, does anyone have a solution for this? It's not acceptable behavior for our clients to have this code inserted by default <p>&nbsp;</p>. Where is the setting to turn off "autoparagraph"?
Re: Empty Paragraph Tags at beginning of Page/Table

Documentation Manager, CKSource

See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!

Re: Empty Paragraph Tags at beginning of Page/Table
Changing config.autoParagraph = false did not solve this problem for me in Chrome (didn't test other browers). I have a table being placed via a template, and my code looks like this once I switch to Source

My template code is:
      {
        title: 'Single Column Table',
        image: 'oneColumnTable.gif',
        description: 'Creates a standard single content table.',
        html: '<table class="cTable one-column"><tr><td class="theader">Title</td></tr><tr><td>Content</td></tr></table>'
      },
And the output code looks like this:
<p>
</p>
<table class="cTable one-column">
   <tbody>
      <tr>
         <td class="theader">
            Title</td>
      </tr>
      <tr>
         <td>
            Content</td>
      </tr>
   </tbody>
</table>
<p>
</p>
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
I currently have these variables set via my config file:

config.autoParagraph = false;
config.fillEmptyBlocks = false;
config.shiftEnterMode = CKEDITOR.ENTER_P;
config.enterMode = CKEDITOR.ENTER_BR;
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.