跳到主要内容

InputText

Inserts text into the document.

Syntax

expression.InputText(text, textReplace);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
textRequiredstringA string value that specifies the text to be inserted into the document.
textReplaceRequiredstringA string value that specifies the text to be replaced with a new text.

Returns

This method doesn't return any data.

Example

window.Asc.plugin.executeMethod ("InputText", ["ONLYOFFICE Plugins", "ONLYOFFICE for developers"]);