Any PowerPoint interaction through Office-JS is merged into one undo-history entry #5249
Open
1 task done
Labels
Area: PowerPoint
Issue related to PowerPoint add-ins
Platform: Desktop
Platform: macOS
Type: product bug
Bug in the Office Add-ins platform or Office JavaScript APIs
Your Environment
Expected behavior
each PowerPoint interaction through Office-JS with
PowerPoint.run()
where we write something to the PowerPoint (not reading out though) should result in an individual undo entryCurrent behavior
Multiple/separate
PowerPoint.run()
calls that writes/changes something to the PowerPoint are merged into one undo-history entry. Even if I would insert 100 slides or do other PowerPoint operations via Office-JSSteps to reproduce
Simple example (but is reproducable with any other
PowerPoint.run()
call where something is written/changed to the PowerPointProvide additional details
PowerPoint.run()
calls result in separate undo history entries. (BUT only on Windows. On Mac this workaround does not help)Office.context.document.setSelectedDataAsync("Hello world", { coercionType: Office.CoercionType.Text })
always creates a new undo history entry. But this API is primitive and we can't control much with it.PowerPoint.run()
, thensetSelectedDataAsync
and then againPowerPoint.run()
still results in merged undo history entry for allPowerPoint.run()
callsContext
Having the possiblity to undo each write operation to PowerPoint would be good to revert the last operation and not 10 at once.
Useful logs
Screen.Recording.2025-01-08.at.12.21.19.mov
The text was updated successfully, but these errors were encountered: