xonomy icon indicating copy to clipboard operation
xonomy copied to clipboard

Can't prevent text editing inside of element

Open jasoncslaughter opened this issue 8 years ago • 3 comments

In my XML document, I have some XML like the following:

<dataStatistics>
   <statistic></statistic>
</dataStatistics>

In the editor, it looks something like this:

Image of editor

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

Image of editor

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!

jasoncslaughter avatar Oct 06 '17 13:10 jasoncslaughter

@rexrhino Maybe you have declared hasText:true for the dataStatistics element? Simply remove that or set to false and all schould be fine.

viceice avatar Jan 10 '18 13:01 viceice

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 avatar Jan 11 '19 06:01 merajcal

@merajcal There is currently no option to make inline text readonly.

viceice avatar Jan 15 '19 05:01 viceice