diff --git a/wax-prosemirror-core/src/utilities/track-changes/helpers/replaceAroundStep.js b/wax-prosemirror-core/src/utilities/track-changes/helpers/replaceAroundStep.js index db8f7c2f14da9af34168a243dc6b2c7a1f1dc95a..44cba88381c7d53c908d6d666583d1a7b7ef4214 100644 --- a/wax-prosemirror-core/src/utilities/track-changes/helpers/replaceAroundStep.js +++ b/wax-prosemirror-core/src/utilities/track-changes/helpers/replaceAroundStep.js @@ -21,7 +21,7 @@ const replaceAroundStep = ( newTr.step(step); const from = step.getMap().map(step.from, -1); const to = step.getMap().map(step.gapFrom); - markInsertion(newTr, from, to, user, date, group); + markInsertion(newTr, from, to, user, date, group, viewId); } else if (!step.slice.size || step.slice.content.content.length === 2) { const invertStep = originalStep.invert(tr.docs[originalStepIndex]).map(map); // unwrapped from something diff --git a/wax-prosemirror-core/src/utilities/track-changes/helpers/replaceStep.js b/wax-prosemirror-core/src/utilities/track-changes/helpers/replaceStep.js index e26da3edccd2761869525cd14903bad7c937d532..98fd4204711fea0b3230761d7ef656eb6ee6a77d 100644 --- a/wax-prosemirror-core/src/utilities/track-changes/helpers/replaceStep.js +++ b/wax-prosemirror-core/src/utilities/track-changes/helpers/replaceStep.js @@ -44,7 +44,15 @@ const replaceStep = ( } const mappedNewStepTo = newStep.getMap().map(newStep.to); - markInsertion(trTemp, newStep.from, mappedNewStepTo, user, date, group); + markInsertion( + trTemp, + newStep.from, + mappedNewStepTo, + user, + date, + group, + viewId, + ); // We condense it down to a single replace step. const condensedStep = new ReplaceStep( newStep.from, diff --git a/wax-prosemirror-core/src/utilities/track-changes/trackedTransaction.js b/wax-prosemirror-core/src/utilities/track-changes/trackedTransaction.js index fcb0c961394ba129f034d6dbb227bed374f9a77b..36c00d8152e5ce7062df89072f39580bf67d0722 100644 --- a/wax-prosemirror-core/src/utilities/track-changes/trackedTransaction.js +++ b/wax-prosemirror-core/src/utilities/track-changes/trackedTransaction.js @@ -60,7 +60,6 @@ const trackedTransaction = ( const step = originalStep.map(map); const { doc } = newTr; if (!step) return; - switch (step.constructor) { case ReplaceStep: replaceStep(