Forum closed. New forum available at http://community.wymeditor.org/

Empty table data cells ?

Support forum for WYMeditor.

Empty table data cells ?

Postby troyr on Tue Apr 01, 2008 4:51 am

Trying to get tables working properly. If i create a table and leave a few cells with no data the xhtml cleaner removes those cells from the table. If you add a border to the table then the user realises this is not really what they want. A bigger problem is that when you go back to edit the table (if its saved via a script and pushed to a db) there is no way to put the cells back in via the wysiwym. You have to enter them back in via source.

The only quick workaround i could think of at present is to comment out
Code: Select all
line 1870 - xhtml_parser.js
xhtml = this.removeEmptyTags(xhtml);


But i would prefer not to hack into the source. Does anyone have any suggestions
troyr
 
Posts: 6
Joined: Tue Mar 06, 2007 4:39 am

Re: Empty table data cells ?

Postby PACE on Fri May 30, 2008 10:42 pm

You are right, an empty cell is an empty tag to Wymeditor and is therefore removed. I don't know for sure but doesn't Mozilla still omit empty table cells? So to display correctly there would have to be at least a   in there?

Ben
PACE
 
Posts: 15
Joined: Fri Oct 12, 2007 10:24 am
Location: Austria

Re: Empty table data cells ?

Postby belda on Thu Oct 09, 2008 11:08 am

but it removes also cells with nbsp and with 0
belda
 
Posts: 3
Joined: Thu Oct 09, 2008 10:58 am


Return to Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron