diff --git a/app/components/SimpleEditor/elements/track_change/TrackChangesProvider.js b/app/components/SimpleEditor/elements/track_change/TrackChangesProvider.js index 8e7ebe93a759fec60fd4751fd5211198f647c1e1..e30739836e56683b0c8c413aa6c5f5ed7ea0d609 100644 --- a/app/components/SimpleEditor/elements/track_change/TrackChangesProvider.js +++ b/app/components/SimpleEditor/elements/track_change/TrackChangesProvider.js @@ -75,8 +75,6 @@ class TrackChangesProvider extends TOCProvider { const isFromSameUser = this.isAnnotationFromTheSameUser(annotation) const mode = this.getMode() - // console.log(annotation) - if (isFromSameUser) { this.insertText(event) if (isOnLeftEdge) this.expandAnnotationToDirection(annotation) @@ -350,8 +348,8 @@ class TrackChangesProvider extends TOCProvider { this.removeTrackAnnotation(annotation) }) - selection.startOffset = minBy(selectionArray, 'startOffset').startOffset - selection.endOffset = maxBy(selectionArray, 'endOffset').endOffset + selection.start.offset = minBy(selectionArray, 'start.offset').start.offset + selection.end.offset = maxBy(selectionArray, 'end.offset').end.offset return selection // TODO