I use tinymce to edit template, sometime I put some regular expression inside table tag as below:
<table>
<tr><th>ID</th><th>Name</th></tr>
{table_rows}
</table>
I want to save this template to use in other page but tinymce will move {table_rows} to outside table tag as:
{table_rows}
<table>
<tr><th>ID</th><th>Name</th></tr>
</table>
The question is: How to prevent reformat code in tinymce so I can save free html code.
Thanks in advanced!
Problem here is that you have put your {table_rows}
outside a html tag.
Tinymce wraps such text inside the appropriate html tag.
You should wrap your code snippet inside a valid tag.