Empty table cells get space added when updating

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
6/29/2012 4:40:21 AM
Gravatar
Total Posts 68

Empty table cells get space added when updating

Hi Joe,

When there is an empty cell in a table the CMS seems to add a Non breaking Space ( ) to the empty cell.

Empty cell here means I just have it for design reasons, example; a cell with a height of 1 pixel with a green background so that it shows a horizontal divider across the table. See the right hand column with flags on this page. http://awm-solutions.iwmi.org/countries-1.aspx

I need the the table cell to stay empty (no space or any html) and then set the height via css to 1 pixel. But when I make content changes anywhere else on the page and update then that empty cell gets a NonBreakingSpace added to it. Which messes up my design by making the cell too tall again.

How do I stop the CMS from adding the nbsp to my emty cells?

Also, I notice that at the end of the html and even at the beginning of the html an additional Paragraph seems to always get added to my code when I hit update.

Why is that and I can I stop it doing that?

Please help as it is quite urgent that I fix these before the client takes over the site.

Best regards,

Dominique

6/29/2012 1:49:45 PM
Gravatar
Total Posts 18439

Re: Empty table cells get space added when updating

Hi,

Its possible that the WYSIWYG editor does that. We have both CKeditor and TinyMCE so you could try a different editor in site settings.

In the latest version of mojoPortal there is also a setting in the Html Content feature settings to disable the WYSIWYG editor and use a plain text area. By doing that you can enter the raw html that you want and nothing will be changed since the WYSIWYG editor is not used.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.