window.Asc.plugin.executeMethod ("ReplaceTextSmart", [args], callback)
Defines the method that allows replacing each paragraph (or text in cell) in the select with the corresponding text from an array of strings.
This method should be used in the following way:
window.Asc.plugin.executeMethod ("ReplaceTextSmart", [arrString, sParaTab, sParaNewLine]);
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 |
" " |
The method always returns the true boolean value.
window.Asc.plugin.executeMethod("ReplaceTextSmart", [["test_1", "test_2"], " ", " "]);