mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
Fix bug #77170
Fix an issue with positions of the selection when replacing text in a run
This commit is contained in:
@ -12128,11 +12128,11 @@ ParaRun.prototype.CopyTextFormContent = function(oRun)
|
||||
}
|
||||
|
||||
if (this.Content.length - nStart - nEnd > 0)
|
||||
this.RemoveFromContent(nStart, this.Content.length - nStart - nEnd);
|
||||
this.RemoveFromContent(nStart, this.Content.length - nStart - nEnd, true);
|
||||
|
||||
for (var nPos = nStart, nEndPos = nRunLen - nEnd; nPos < nEndPos; ++nPos)
|
||||
{
|
||||
this.AddToContent(nPos, oRun.Content[nPos].Copy());
|
||||
this.AddToContent(nPos, oRun.Content[nPos].Copy(), true);
|
||||
}
|
||||
};
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user