Interacting with editorsSpreadsheet APIMethodsInputText本页总览InputTextAsk a question 向文档中插入文本。 语法 expression.InputText(text, textReplace); expression - 表示 Api 类的变量。 参数 名称必需/可选数据类型默认值描述text必需string指定要插入文档中的文本的字符串值。textReplace必需string指定要被新文本替换的文本的字符串值。 返回值 此方法不返回任何数据。 示例 window.Asc.plugin.executeMethod ("InputText", ["ONLYOFFICE Plugins", "ONLYOFFICE for developers"]);