Dear all,
When selecting a complete table and choosing a style from the style drop-down messes up the complete table.
fe <table>
<tr><td>abc</td><td>def</td></tr>
<tr><td>ghi</td><td>jkl</td></tr>
</table>
select complete table and apply style to it gives following code :
<table>
<tr><td>abc</td><td>def</td><td>ghi</td><td>jkl</td></tr>
<tr></tr>
</table>
Anyone any idea how to fix this?
Regards
When selecting a complete table and choosing a style from the style drop-down messes up the complete table.
fe <table>
<tr><td>abc</td><td>def</td></tr>
<tr><td>ghi</td><td>jkl</td></tr>
</table>
select complete table and apply style to it gives following code :
<table>
<tr><td>abc</td><td>def</td><td>ghi</td><td>jkl</td></tr>
<tr></tr>
</table>
Anyone any idea how to fix this?
Regards
RE: ff apply style on whole table messes up table
Firstly, I put next code on the page (first <tr><td> tags are automatically added outside of fckeditor form):
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top"> <div style="margin: 10px 10px 0px 10px">
<h1 align="left">Новое на сайте</h1>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr><td height="15" class="darkgrey"> </td></tr>
And then I reopen the editor for this page in IE. It messes up the tables:
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tbody>
<tr>
<td valign="top">
<div style="margin: 10px 10px 0px">
<h1 align="left">Новое на сайте</h1>
</div>
</td>
</tr>
</tbody>
</table>
<p>
<tr>
</tr>
<td class="darkgrey" height="15"> </td>
</p>
Still don't know what to do... Tried to look in the JS code but it is completely undreadable...
RE: ff apply style on whole table messes up table
The table should be completely put in the editor window to ensure that it stays unchanged by fck.
For example, if you put just tags
<tr><td>
</td></tr>
and no enclosing <table></table>, you'll probably get this error.
Maybe you have some errors in your style defs?