There is a good example of Y.XmlElement manipulation to observe events: https://docs.yjs.dev/api/shared-types/y.xmlelement
The problem comes when I try to use it for Prosemirrror with y-prosemirror binder.
For example adding tableRow in a table in prosemirror editor places new table row not there where I want, but inserts it in other position and then moves text content from one cell to another. So it is impossible to realize where the row has been added. For example I add a row at position 2, but first delta has [{ retain: 6 }, { insert: [XmlElement] }]
and then a lot of deltas to compensate table cells shifting, like deletion from one cell, and inserting in another.
Is it a way it works or it is a bug? How can I recognize at which position table row has been added?