Skip to content

Commit

Permalink
Fix DeletedTextRecovery
Browse files Browse the repository at this point in the history
+ add more tests
  • Loading branch information
IgolJack committed Jul 27, 2023
1 parent 6e37c19 commit 3dd8564
Show file tree
Hide file tree
Showing 3 changed files with 377 additions and 216 deletions.
13 changes: 7 additions & 6 deletions common/CollaborativeEditingBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@
this.m_nExternalIndex0 = -1;
this.m_nExternalIndex1 = -1;
this.m_nExternalCounter = 0;

this.oDeletedTextRecovery = null;
}

CCollaborativeEditingBase.prototype.GetEditorApi = function()
Expand Down Expand Up @@ -360,14 +362,13 @@
this.OnStart_Load_Objects(fEndCallBack);
AscFonts.IsCheckSymbols = false;

let revision = new AscCommon.DeletedTextRecovery();
revision.InitRevision();
if (revision.GetIsShowDelText())
this.oDeletedTextRecovery = new AscCommon.DeletedTextRecovery();
this.oDeletedTextRecovery.InitRevision();
if (this.oDeletedTextRecovery.GetIsShowDelText())
{
revision.NavigationRevisionHistoryByStep(0);
this.oDeletedTextRecovery.ShowDelText();
}
this.Next = revision;
}
}
else
{
if (fEndCallBack)
Expand Down
Loading

0 comments on commit 3dd8564

Please sign in to comment.