Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't prevent text editing inside of element #20

Open
jasoncslaughter opened this issue Oct 6, 2017 · 3 comments
Open

Can't prevent text editing inside of element #20

jasoncslaughter opened this issue Oct 6, 2017 · 3 comments

Comments

@jasoncslaughter
Copy link

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!

@viceice
Copy link

viceice commented Jan 10, 2018

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

@merajcal
Copy link

merajcal commented Jan 11, 2019

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>

@viceice
Copy link

viceice commented Jan 15, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants