Get Started
Plugins
Macros
More information

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

Description

Defines the method that allows replacing each paragraph (or text in cell) in the select with the corresponding text from an array of strings.

Usage

This method should be used in the following way:

window.Asc.plugin.executeMethod ("ReplaceTextSmart", [arrString, sParaTab, sParaNewLine]);
Parameters
Parameter Description Type Example
arrString An array of replacement strings. array of strings ["test_1", "test_2"]
sParaTab A character which is used to specify the tab in the source text. string " "
sParaNewLine A character which is used to specify the line break character in the source text. string " "
Returns

The method always returns the true boolean value.

Example
window.Asc.plugin.executeMethod("ReplaceTextSmart", [["test_1", "test_2"], " ", " "]);