Closed azm819 closed 2 years ago
Thank you very much for your contribution, but I'm curious as to what happens when there is a blank line? Can you provide a sample json, or some steps to reproduce this issue?
jsonPreview.jsonTextView.isEditable = true
- make jsonTextView editable:
jsonPreview.jsonTextView.isEditable = true
- try clicking on empty jsonTextView
Ok, I understand, I will merge this modification.
But let me be clear, JSONPreview
is not developed as a JSON editor, it's just a preview view. So try not to turn on the isEditable
property, it may cause a lot of unpredictable errors. And JSONPreview
can't do real-time rendering of user input at the moment.
If you click on an empty line, an "String index is out of bounds" error is raised