mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #20052 from overleaf/em-tracked-deletes-limit
Include tracked deletes when limiting document size GitOrigin-RevId: 9d7b2870001fb942eaa92db78993fee1ddb3937c
This commit is contained in:
@@ -768,6 +768,16 @@ class RangesTracker {
|
||||
return this._dirtyState
|
||||
}
|
||||
|
||||
getTrackedDeletesLength() {
|
||||
let length = 0
|
||||
for (const change of this.changes) {
|
||||
if (change.op.d != null) {
|
||||
length += change.op.d.length
|
||||
}
|
||||
}
|
||||
return length
|
||||
}
|
||||
|
||||
_markAsDirty(object, type, action) {
|
||||
this._dirtyState[type][action][object.id] = object
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user