onParagraphDeleted or onParagraphChanged event
API: Office.js
Related issue: https://github.com/OfficeDev/office-js/issues/3864
Hi team,
I’m running into a behavior that appears to be a known limitation of the current Office.js API, as discussed in the linked GitHub issue, but I wanted to confirm whether this is still the expected behavior or if there are any recommended workarounds.
Scenario
We rely on paragraph-level text change events to keep external systems in sync with document edits.
However, when something deleted in a paragraph with track changes enabled, the corresponding event is not triggered. This makes it impossible to reliably detect paragraph removal using the current event model.
From the discussion in issue #3864, this seems to be a known limitation of the API. That said, from a consumer perspective, paragraph deletion is a meaningful content change, and ideally the event should still be emitted.
Questions
- Is the lack of an event on paragraph deletion still an intentional limitation of the current Office.js API?
- Are there any recommended workarounds to detect paragraph deletion reliably (for example, via range tracking, content controls, or other event combinations)?
- Is there any plan on the roadmap to emit paragraph-level events when a paragraph is removed in track changes mode?
Any clarification on current expectations or future plans would be very helpful.
Thanks in advance.