Ticket #369 (closed defect: fixed)
Empty cells once a table has been created
| Reported by: | PeteBest | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Xinha Core | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Not sure if there's a better way to do this, but with IE the output from XINHA if you just create a table doesn't have anything inside the cells. Both IE and Mozilla don't like it, the current code includes a fix for Mozilla, but IE a similar fix as well
I've just edited it to include a non-breaking space inside each of the cells, and this seems a bit better. To be honest though, the best solution is probably a 1x1 pixel transparent image, so it won't break any formatting. By default with Mozilla XINHA already adds a <br /> inside the cells, I think that a nonbreaking space is a better idea than that as the formatting *should* be retained a bit better this way
Find around line 3373 -> 3374
// Mozilla likes to see something inside the cell.
(HTMLArea.is_gecko) && td.appendChild(doc.createElement("br"));
Replace with:
// Browsers like to see something inside the cell.
td.appendChild(doc.createTextNode('\u00a0'));
