Please let us know if you need any further assistance.
INInkzFebruary 5, 2020 09:01 AM UTC
Thank you so much for the answer, I really appreciate it.
But, I do have further questions.
Is it possible to use findAll() just to highlight all the found texts without leaving any text selected and highlight multiple texts like all words in the set ["Adventure", "Hello", .....] also, implement my own sidebar like this one?
HCHarini Chellappa Syncfusion Team February 6, 2020 01:08 PM UTC
Thank you. Please find the details of your query from below.
findAll method finds all the occurences of single string and highlight. It won't accept array of strings to find.
Regarding side bar.
Document editor control doesn’t provide option to customize its element structure. If you change the element structure by appending any div for side bar, it may not align properly.
Instead of adding in document editor element, you can add div[side bar] in line with the document editor.
To resize the control, which is rendered already, you can use resize method of document editor.
INInkzFebruary 12, 2020 05:11 PM UTC
Is it possible to use findAll() to check how many instances of the text found and ended up not selecting any text?
HCHarini Chellappa Syncfusion Team February 14, 2020 05:37 AM UTC
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.
Please try the above property and let us know whether this satisfies your requirement.
INInkzMarch 2, 2020 04:21 PM UTC
Thank you so much, it works perfectly!
I could not believe I overlooked that part of the document.
INInkzApril 18, 2020 04:39 PM UTC
I know this is an old thread but I do not want to waste your resources and create a new one.
Is there any way to maintain the editor state?
Like when I accidentally went to another page or link and I clicked back to the editor page, the editor will remain what I edited earlier.
Also, in every online demo, I saw the file "title-bar.js" is used for the title bar. Is there any way I can have a title bar without using that file?
HCHarini Chellappa Syncfusion Team April 20, 2020 11:27 AM UTC
##Reg. state maintainence.
Currently, document editor doesn’t provide support for state persistence. We have logged this as feature request and this feature will be included in any of our upcoming releases. You can track the feature status from below link.