Add forms after current labeled checkbox
This commit is contained in:
Ilya Kirillov
2025-11-01 20:52:38 +03:00
parent 8312c69e0a
commit 2771cd3661

View File

@ -89,6 +89,22 @@ CInlineLevelSdt.prototype.Add = function(Item)
this.SetDefaultTextPr(oTempTextPr);
return;
}
if (this.IsLabeledCheckBox() && (Item instanceof AscWord.CInlineLevelSdt))
{
if (this.IsFixedForm())
return;
let parent = this.GetParent();
let posInParent = this.GetPosInParent(parent);
if (-1 !== posInParent && parent)
{
parent.AddToContent(posInParent + 1, Item);
Item.MoveCursorToContentControl(true);
}
return;
}
this.private_ReplacePlaceHolderWithContent();