I want to use the tinymce editor to edit smarty templates. The problem is that the editor always rearrange the code. If I enter this code in to the HTML window:
<table border="0">
<tbody>
<tr>
<td> </td>
<td> </td>
</tr>
{if empty($test)}
<tr>
<td> </td>
<td> </td>
</tr>
{/if}
</tbody>
</table>
OK butonuna tıkladıktan sonra bu kodu dönüşür:
<p>{if empty($test)} {/if}</p>
<table border="0">
<tbody>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>