Get Started
Plugins
Macros
More information

ReplaceTextSmart

ReplaceTextSmart(arrString, [sParaTab], [sParaNewLine]) → { boolean }

Replaces each paragraph (or text in cell) in the select with the corresponding text from an array of strings.

Parameters:

Name Type Default Description
arrString Array

An array of replacement strings.

sParaTab string " "

A character which is used to specify the tab in the source text.

sParaNewLine string " "

A character which is used to specify the line break character in the source text.

Returns:

Type
boolean

Example

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