ReplaceTextSmart

function ReplaceTextSmart(
  arrString: [],
  sParaTab: string = " ",
  sParaNewLine: string = " ",
): boolean

Description

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

Parameters

arrString[]

An array of replacement strings.

sParaTabstringdefault: " "

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

sParaNewLinestringdefault: " "

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

Returns

boolean

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).