documentEditor replaceAll function not working as before

Hi,

After upgrading document-editor to version 20.2.39 replaceAll function seems to work incorrectly. Are there any changes in api?

documentEditor.current.search.findAll('foo');

documentEditor.current.search.searchResults.replaceAll('bar');

Best Regards


5 Replies

SM Suriya Murugan Syncfusion Team July 27, 2022 04:26 AM UTC

Hi AB,


Please check below documentation: https://ej2.syncfusion.com/react/documentation/document-editor/find-and-replace/#replace-all-the-occurrences


No changes in API. We have tried in mentioned version and it working porperly.


Can you please confirm are you facing this issue in any special cases?


Regards,

Suriya M.



AB AB July 27, 2022 05:42 AM UTC

Hi,

I attached a sfdt file compressed with rar format. When I want to replace all 'who' with any other word the replaceAll function adds the replaced words to end of paraghraph.

Best Regards


Attachment: find_replace_a73f5f89.rar


SM Suriya Murugan Syncfusion Team July 28, 2022 03:56 AM UTC

Hi AB,


In below sample, we tried to replicate the reported issue but couldn't.


Can you please check it?


https://stackblitz.com/edit/kotz37?file=index.ts,index.html,data-default.json


"Find" button click search the word "who". "Replace" button click replace the searched word.


Can you please share video illustration with simple sample to recreate the issue at our end?


Regards,

Suriya M.



AB AB July 28, 2022 10:45 AM UTC

It looks like it is fixed in version 20.2.40. There was a problem in version 20.2.39


Best regards



SM Suriya Murugan Syncfusion Team August 1, 2022 04:36 AM UTC

Hi AB,


Please use latest version(20.2.40).


Please let us know if you need further assistance.


Regards,

Suriya M.


Loader.
Up arrow icon