I have searched for this issue, but do not seem to be able to find it so I'll give it a shot here.
When using CKEditor 3.2.1 in the source mode I have entered a html code for a table and a table within a cell of the master table. I want the table within the table to be centered in the master table cell. Partial sample code follows:
Notice the
I have searched the CKEditor files for where this swap is occuring, but have not been able to find it nor have I found a place or way to over ride this swaping. It appears that CKEditor is using the valign "middle" for an align "center" definition.
Any help or guidance is appreaciated.
You can test this out in the online demo of CKEditor it will create the same results.
Steve
When using CKEditor 3.2.1 in the source mode I have entered a html code for a table and a table within a cell of the master table. I want the table within the table to be centered in the master table cell. Partial sample code follows:
<table id="table1"> <tbody> <tr> <td align="center"> <table id="table5"> <tbody>
Notice the
<td align="center">tag above. When you come out of the Source mode the table within table does infact center, but if you return to the Source Mode you will note that the
<td align="center">has been changed to
<td align="middle">which is incorrect html. The resulting page with this tag will not display correctly in browser, but will display correctly in CKEditor.
I have searched the CKEditor files for where this swap is occuring, but have not been able to find it nor have I found a place or way to over ride this swaping. It appears that CKEditor is using the valign "middle" for an align "center" definition.
Any help or guidance is appreaciated.
You can test this out in the online demo of CKEditor it will create the same results.
Steve
Re: Table Cell Format Error middle vs center
Yes it seems this is perhaps just a simple oversight in the latest code here. I confirm this issue affects Firefox, but not Internet Explorer because IE is able to correctly display <td align="middle"> and centers the text in the table cell. Though yes indeed, align="middle" it is not valid HTML. I too have searched the code, run the code through IE JS debugger, and cannot find where this is occurring. Looking forward to your next release CK, please fix this soon because your editor rocks so hard that it tilts this awesome world off its axis!! AK
Re: Table Cell Format Error middle vs center
I have noticed that its being generated when saving data from IE. If saving data from firefox it does not happen. This happens when using: the setData() and getData() methods.
Ex. (ASP.Net) im using:
CKEDITOR.instances.<%= MyTextBox.ClientID %>.getData();
CKEDITOR.instances.<%= MyTextBox.ClientID %>.setData(html);
Re: Table Cell Format Error middle vs center
this is still happening w/ the current version 3.4.2
you can also see this on the ckeditor.com/demo site.
this is over 6 months old. and its causing invalid HTML. please help/fix!
thanks!
div
Re: Table Cell Format Error middle vs center
Anyway, a hint: this is an internal bug of IE and it will be hard to fix correctly. Your best chance is to use a css class to perform the alignment.
Re: Table Cell Format Error middle vs center
#7962: Bug: <td> align attribute causes validation errors in IE 8 (confirmed)