Hi,
I am building an application where users can design site pages. I am providing a bunch of velocity tags for user to put in to provide dynamic content.
However I have issues with the fckeditor being too strict and stripping off code. For e.g. I have a for loop which I would like to show in a table
<table>
#foreach ($item in ${MyItem.items})
<tr>
<td>
${item.name}
</td>
</tr>
#end
</table>
When I toggle between source and editor view, it removes the foreach and the end tags because its out of place and replaces with
<table>
<tbody>
<tr>
<td>${item.name} </td>
</tr>
</tbody>
</table>
What can I do to solve this? I dont want to use ProtectedSource since then its not visible in editor mode. What are my options? This is critical for my app.. Someone please advise...
I am building an application where users can design site pages. I am providing a bunch of velocity tags for user to put in to provide dynamic content.
However I have issues with the fckeditor being too strict and stripping off code. For e.g. I have a for loop which I would like to show in a table
<table>
#foreach ($item in ${MyItem.items})
<tr>
<td>
${item.name}
</td>
</tr>
#end
</table>
When I toggle between source and editor view, it removes the foreach and the end tags because its out of place and replaces with
<table>
<tbody>
<tr>
<td>${item.name} </td>
</tr>
</tbody>
</table>
What can I do to solve this? I dont want to use ProtectedSource since then its not visible in editor mode. What are my options? This is critical for my app.. Someone please advise...
RE: Custom tags in html table
As soon as the browser loads that code it will remove all the things that don't belong to a table, so your only change would be to replace that table with another element and then going back to the table after the editing is finished.
You can read about this idea here:
https://sourceforge.net/tracker/index.p ... tid=543655