GetSelectedText returning incorrect numbering

I have a plugin using the GetSelectedText method which is returning the incorrect numbering when a paragraph is removed.

  1. Insert a paragraph with numbering. Highlighted the text and observe that the correct numbering is returned on the right side.

  1. Turn on tracked changes. Delete one of the entire sections. Highlight the text and observe the incorrect numbering is displayed for the deleted section.

We see the following text:

1.1	Text in section 1.
1.1	Text in section 2.

Instead of:

1.1	Text in section 1.
1.2 Text in section 2.

OS version: MacOS 11.7.1
App version:

Example doc:
sample_doc.docx (13.2 KB)

Hello @doo
If it’s possible, please provide us with your plugin, we will check the situation.

Hi, my plugin code is just using the the GetSelectedText method.

window.Asc.plugin.executeMethod("GetSelectedText", [], function(selectedText) {

Thank you, we are checking the situation.