mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +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)
|
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)
|
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