Skip to content
Snippets Groups Projects
Commit 5e93bbbc authored by Yannis Barlas's avatar Yannis Barlas
Browse files

Merge branch 'fixes-track-change' into 'staging'

fix offsets to work with substance beta 6

See merge request !27
parents 247bbd6c 610c13cc
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment