Track changes behaviour issues

I want to confirm the following:

If Track Changes is enabled at all times, and I delete text from the document using the ONLYOFFICE automation API (for example, through callCommand), will the deleted text appear as a tracked deletion (shown as strikethrough)?

Or will the text be removed permanently without being marked as a tracked change?

In other words, do programmatic deletions made through the automation API respect the Track Changes setting, or do they bypass it?

Hello @Avi_J

Yes, it will. You can check it out in the Playground: Playground | ONLYOFFICE

From this link you will access the connector playground space. With this simple script you will see the action:

connector.callCommand(() => {
    let doc = Api.GetDocument();
    doc.SetTrackRevisions(true); // Enable Track Changes
    let range = doc.GetRange(0,7); // Get range for 'Welcome' word
    range.Delete(); // Remove range to trigger change
})

Note that the “Welcome” word is marked as change.