Hi,
is it possible to disable HTML "auto correction"?
When I try to add the following HTML code into the source code view of CKEditor 4:
<html>
<head>
<title></title>
</head>
<body>
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
<tbody>
<tr>
<td>dheat</td>
<td>jzejetzj</td>
</tr>
@PLACEHOLDER1@
<tr>
<td>rzjwrzjrzj</td>
<td>wrzjrwzjwrzj</td>
</tr>
@PLACEHOLDER2@
<tr>
<td>rwjwrzj</td>
<td>wrzjwrjwrj</td>
</tr>
</tbody>
</table>
<p> </p>
</body>
</html>
CKEditor will "correct" it to:
<html>
<head>
<title></title>
</head>
<body>
<p>@PLACEHOLDER1@ @PLACEHOLDER2@</p>
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
<tbody>
<tr>
<td>dheat</td>
<td>jzejetzj</td>
</tr>
<tr>
<td>rzjwrzjrzj</td>
<td>wrzjrwzjwrzj</td>
</tr>
<tr>
<td>rwjwrzj</td>
<td>wrzjwrjwrj</td>
</tr>
</tbody>
</table>
<p> </p>
</body>
</html>
I'm using the pasted snippet as a template. The two placeholder (@PLACEHOLDER1/2@) will be replaced by a few table rows when parsting the template.
Is there a way to switch this "auto correction" off? I need the placeholder to be kept where they are.
Thanks and regards,
Crazy
I solved it by adding a
I solved it by adding a protectedSource regex.
The placeholder aren't available in WYSIWYG Mode now but I think I can live with it if noone knows a better solution.