window.Asc.plugin.callCommand(() => {
var oDocument = Api.GetDocument();
var oParagraph = Api.CreateParagraph();
var oTextForm = Api.CreateTextForm({
key: "Personal information",
tip: "Enter your first name",
required: true,
placeholder: "First name",
comb: true,
maxCharacters: 10,
cellWidth: 3,
multiLine: false,
autoFit: false,
});
oParagraph.AddElement(oTextForm);
var json = oParagraph.ToJSON(true, true);
var oParagraphFromJSON = Api.FromJSON(json);
oDocument.AddElement(0, oParagraphFromJSON);
})
TextForm will change to InlineLvlSdt, CheckBoxForm will repeat,ComboBoxForm will not be rendered, and the ContentControlList generated by Plugin(AddContentControlList) will not be rendered