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?
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
})