mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #25910 from overleaf/em-track-changes-sharejs
Track changes in the history OT sharejs doc GitOrigin-RevId: 17365219f24a25790eac611dbde9681eb73d0961
This commit is contained in:
@@ -196,9 +196,13 @@ export class DocumentContainer extends EventEmitter {
|
||||
return this.doc?.hasBufferedOps()
|
||||
}
|
||||
|
||||
setTrackingChanges(track_changes: boolean) {
|
||||
setTrackChangesUserId(userId: string | null) {
|
||||
this.track_changes_as = userId
|
||||
if (this.doc) {
|
||||
this.doc.track_changes = track_changes
|
||||
this.doc.setTrackChangesUserId(userId)
|
||||
}
|
||||
if (this.cm6) {
|
||||
this.cm6.setTrackChangesUserId(userId)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user