mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Fix bug #66602
Fix an issue with clearing selection when applying text properties
This commit is contained in:
@ -7593,6 +7593,12 @@ Paragraph.prototype.Apply_TextPr = function(TextPr, IncFontSize)
|
||||
if (this.Content[EndPos].IsRun())
|
||||
{
|
||||
this.RemoveSelection();
|
||||
for (let i = 0; i < NewElements.length; ++i)
|
||||
{
|
||||
if (NewElements[i])
|
||||
NewElements[i].RemoveSelection();
|
||||
}
|
||||
|
||||
let centerPos = this.Internal_ReplaceRun(EndPos, NewElements);
|
||||
|
||||
this.Selection.Use = true;
|
||||
|
||||
Reference in New Issue
Block a user