xonomy
xonomy copied to clipboard
Can't prevent text editing inside of element
In my XML document, I have some XML like the following:
<dataStatistics>
<statistic></statistic>
</dataStatistics>
In the editor, it looks something like this:

There are the green dots to add text before and after the <statistics/> tag:

I can't find in the documentation how to prevent users from adding text. I only want the user to be able to add tags that I explicitly specify for <dataStatistics>. Is there some way to do that?
Thanks!
@rexrhino Maybe you have declared hasText:true for the dataStatistics element? Simply remove that or set to false and all schould be fine.
Thanks for response ViceIce. But the problem is if I remove hasText:true. Then inline comments are not rendered. example <school> <!-- This is text comment. This line is not getting rendered --> <student>John</student> </school>
@merajcal There is currently no option to make inline text readonly.