Skip to main content

PasteText

Pastes text into the document.

Syntax​

expression.PasteText(text);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
textRequiredstringA string value that specifies the text to be pasted into the document.

Returns​

This method doesn't return any data.

Example​

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