Documentserver: Removing text in review mode programmatically doesn't create a tracked change

Created on 24 Dec 2018  路  1Comment  路  Source: ONLYOFFICE/DocumentServer

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
In the "Documents" editor, when you call API method for removing text, the text is removed completely, i.e. without creating a tracked change. Whereas adding text via API in review mode creates a tracked chage.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Open the "Documents" editor demo, running in review mode
    https://api.onlyoffice.com/editors/editor?method=docxReview
  2. Open Macros window and create a new macros with the following content
var oDocument = Api.GetDocument();
var oParagraph, oRun;
oParagraph = oDocument.GetElement(0);
oParagraph.RemoveAllElements();
  1. Run the macros, and look at the result

The title text is removed completely.

What is the expected behavior?
The tracked change is created for the removed title.

Did this work in previous versions of DocumentServer?
Not checked.

DocumentServer version: 5.2.4

Operating System: Windows 10

Browser version: Google Chrome | 71.0.3578.98聽(64聽bit)聽(cohort: Stable)

Notes: the attached image shows the expected result of deleting text programmatically. This can only be achived with manual deleting a title. Deleting it via API edits the document which shouldn't be possible in review mode.
chrome_qidvv32srq

bug

Most helpful comment

Hello @anton-tarasov-qs. Thank you. I can confirm - this is a bug, issue 40189 in our internal issue tracker.

>All comments

Hello @anton-tarasov-qs. Thank you. I can confirm - this is a bug, issue 40189 in our internal issue tracker.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ShockwaveNN picture ShockwaveNN  路  6Comments

cpot picture cpot  路  8Comments

dmitrydrynov picture dmitrydrynov  路  4Comments

RuslanGabbasov picture RuslanGabbasov  路  9Comments

forteller picture forteller  路  9Comments