Backward text selection with mouse, does not capture the corresponding text correctly.

Hi,

I have a problem with text selection (Selection class) in the document editor component. I want to know if this is an issue from your side or not (bug or something). 

Inside the document editor, 

Let's say that we have a word Docx document that has several words called "Test".

And we want to replace this word with something else, by selecting it with a mouse and doing some mouse right-click and "Replace" operation.

If I select the word other than its first appearance, (like the second reference of  "Test" in the document, or third), by starting from the end position, the selection always goes for the first one.

Example:

Test

Test

Test

However, this is not an issue, if I choose the word with a double mouse click, or if you select the word, starting from the start position of the word.

Why backward word selection, can not capture the location of the selected word correctly?

I am using this version "@syncfusion/ej2-angular-documenteditor""18.2.47".

I am sorry if this is a known issue, I could not find it in the forums. Thanks in advance.

Regards,
Alejandro

1 Reply

SR Stephen Raj Chandra Sekar Syncfusion Team October 14, 2020 12:52 PM UTC

Hi Alejandro, 
 
 
Can you please share the video of this scenario? It will be helpful for us to reproduce the reported scenario in our end. can you please share how you have replaced a text whether using the Find & replace pane or any other way? can you please share the code snippet on how you are replacing the text. So that we can check accordingly and provide you the appropriate solution at the earliest. 
 
 
Regards, 
Stephen Raj

Loader.
Up arrow icon