FCKeditor is fixing HTML and that cause a damage to HTML page. In some pages in my project it's closing the form tag in wrong way and that cause a JavaScript error in page. I just submitted the following code to the editor to make sure that is fixing the HTML, for example:
when i retrieve the HTML from the editor will add end tags "Test 2</TD>" and extra tags "<tbody></tbody>" that will cause a damage to page, the retrieved code look like this:
Is there is any way to disable the auto fixing in the editor.
Thanks in advance.
<HTML> <HEAD><TITLE> New Document </TITLE></HEAD> <BODY> <TABLE> <TR><TD>Test 1</TD> <TD>Test 2</TR> </TABLE> </HTML></BODY>
when i retrieve the HTML from the editor will add end tags "Test 2</TD>" and extra tags "<tbody></tbody>" that will cause a damage to page, the retrieved code look like this:
<html> <head> <title>New Document</title> </head> <body> <table> <tbody> <tr> <td>Test 1</td> <td>Test 2</td> </tr> </tbody> </table> </body> </html>
Is there is any way to disable the auto fixing in the editor.
Thanks in advance.
Re: FCKeditor is fixing html!!!
When loading HTML in the browser, specially in IE, it may change it to make it conforming its own standards and rendering needs. The only way we have to retrieve the editor contents is by looking at the browser DOm, which at this point will not look at the original source.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn