Sergey Khmelevskoy Sergey Khmelevskoy - 1 month ago 15
Javascript Question

CKEditor prevent closing tags

I have couple of CKEditor fields to manage responsive emails from admin

Let's say

Email Header

<table>
<tr>
<td>
...Header contents...
</td>
</tr>


Email body

<tr>
<td>
.. Some email content ..
</td>
</tr>


Email footer

<tr>
<td>
...Footer contents...
</td>
</tr>
</table>


The Header contains all html tags and opening
table
tag

Footer have closing
table
tag

But CKEditor close
table
in
header
to make it valid and breaks my layout. How do I prevent it?

Answer

Based on ticket #9597, the option to disable auto-correction of open tags is not available.

Comments