Hello
I'm using fckeditor with phplist, and i have a problem. I made a template with some valid xhtml, I place it in the source option of the editor and then change to wysiwyg. When I do this the page is ok. However when I save or change to source code the editor changes my html and i don't wan't it to do it. The HTML must be exactly what i wrote.
I already read the documentation, but couldn't found a way of disabling this event.
Could use some help.
Thanks
Pedro
Example code:
I write this
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Example</title>
</head>
<body style="background-color: #000000; text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;">
<table cellpadding="0" cellspacing="0" style="background-color: #FFFFFF; margin: auto; border: 1px solid #C1C1C1; ">
<tr>
<td><img src="images/banner.jpg" width="518" height="147" alt="" /> </td>
</tr>
<tr>
<td style="text-align: center; padding-bottom: 15px; padding-top: 10px;"><img src="images/footer.jpg" alt=" " width="484" height="50" border="0" usemap="#Map" /> </td>
</tr>
</table>
</body>
</html>
and the editor changes to this:
<table cellspacing="0" cellpadding="0" style="border: 1px solid rgb(193, 193, 193); margin: auto; background-color: rgb(255, 255, 255);">
<tbody>
<tr>
<td><img width="518" height="147" alt="" src="images/banner.jpg" /> </td>
</tr>
<tr>
<td style="text-align: center; padding-bottom: 15px; padding-top: 10px;"><img width="484" height="50" border="0" usemap="#Map" alt=" " src="images/footer.jpg" /> </td>
</tr>
</tbody>
</table>
The editor must/should not change my code.
Thu, 10/11/2007 - 19:44
#1
Re: Avoid changes to the html by the editor
edit fckconfig.js
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+