diff --git a/app/components/SimpleEditor/elements/track_change/TrackChangeComponent.js b/app/components/SimpleEditor/elements/track_change/TrackChangeComponent.js index 4239d21a8d4ccbf2cb16533cec5ec50bad6d31ee..6a0d7224e23824273116e564d6faf57ef0ca0709 100644 --- a/app/components/SimpleEditor/elements/track_change/TrackChangeComponent.js +++ b/app/components/SimpleEditor/elements/track_change/TrackChangeComponent.js @@ -107,7 +107,6 @@ class TrackChangeComponent extends AnnotationComponent { onTrackChangesUpdated (change) { const trackChangesProvider = this.getProvider() trackChangesProvider.handleDocumentChange(change) - this.rerender() } } diff --git a/app/components/SimpleEditor/elements/track_change/TrackChangesProvider.js b/app/components/SimpleEditor/elements/track_change/TrackChangesProvider.js index 6a762e6f08158ea03f368dba119d8c0435d28524..678c3a6252ac3a7d04f981a130b1377002a66987 100644 --- a/app/components/SimpleEditor/elements/track_change/TrackChangesProvider.js +++ b/app/components/SimpleEditor/elements/track_change/TrackChangesProvider.js @@ -534,7 +534,7 @@ class TrackChangesProvider extends TOCProvider { annotationHelpers.truncateAnnotation(doc, annotation, selection) } - surface.transaction(transformation, info) + surface.editorSession.transaction(transformation, info) } /* @@ -862,7 +862,6 @@ class TrackChangesProvider extends TOCProvider { getSelection () { const surface = this.getSurface() - // return surface.getSelection() return surface.domSelection.getSelection() }