To programmatically enable a search this would be useful.
Ouch, feature exists precisely as i wanted. Wasnt in the docs, sorry :)
When using JSONEditor.search(...), the text input doesnt show the actual search value. Maybe this would be convenient
Thanks for the suggestion, the JSONEditor.search function is used internally and isn't part of the public API. It would be convenient to make this method publicly available. Should go together with an onSearch event I think so you're in full control.
Are there any news about this? Looking forward to use this search function
No progress on this one. Anyone interested in picking it up?
@josdejong I may be picking this in the next few days. Right now I'm using the find() function, but it doesn't fill all my needs.
that would be cool!
Just let me know when you're working on it, then we can discuss the precise API we want to end up with here.
Just got it working. Didn't change anything in the code.
When using 'code' mode, I use:
JSONEditor.aceEditor.find('string to search');
If in any other mode, like 'View' or 'Tree', I use:
JSONEditor.search('string to search');
And it just works.
Most helpful comment
Just got it working. Didn't change anything in the code.
When using 'code' mode, I use:
If in any other mode, like 'View' or 'Tree', I use:
And it just works.