ReplaceCurrentWord

ReplaceCurrentWord(replaceString, [type])

Replaces the current word with the specified string.

Parameters:

Name Type Default Description
replaceString string

Replacement string.

type TextPartType "entirely"

Specifies if the whole word or only its part will be replaced.

Returns:

This method doesn't return any data.

Example

Copy code
window.Asc.plugin.executeMethod ("ReplaceCurrentWord", ["ONLYOFFICE", "entirely"]);