window.Asc.plugin.executeMethod("InputText", [args], callback)

Description

Defines the method that allows inserting text into the document.

Usage

This method should be used in the following way:

window.Asc.plugin.executeMethod("InputText", [text, textReplace]);

Where:

  • text is a string value that specifies the text to be inserted into the document;
  • textReplace is a string value that specifies the text to be replaced with a new text.
Returns

The method returns the undefined value.

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