Jsoneditor: Implement support for programmatic search

Created on 8 Feb 2017  路  8Comments  路  Source: josdejong/jsoneditor

To programmatically enable a search this would be useful.

feature help wanted

Most helpful comment

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.

All 8 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ppetkow picture ppetkow  路  8Comments

mashaalmemon picture mashaalmemon  路  7Comments

jaunt picture jaunt  路  4Comments

champ51 picture champ51  路  6Comments

bnewcomer picture bnewcomer  路  6Comments