Hi Nithiphorn,
Syncfusion Greetings!
Regarding “how many instances of the text found”
Document editor provides the searchResults API, where the result information will be returned. It includes length, index, and option to replace all occurrence with specified text and clear the results of the search.
Please refer below documentation for your reference.
Note: Once search is initiated using find or findAll API, search results will be available else search result count will be 0.
Regarding “ended up not selecting any text?”
When performing findAll operation, all the search results will get highlighted, by default it will be highlighted in yellow and first occurrence will be selected.
To overcome this, the search highlight color can be customised. Set the search highlight color to white and to remove first occurrence selection, you can use any selection API to remove selection.
Please refer the below sample for your reference.
For removing selection of first occurrence, I have called moveToDocumentStart method which will move the selection to document start.
this.container.documentEditor.selection.moveToDocumentStart();
Please try the above and let us know if this helps you.
Regards,
Harini C