TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

ReplaceCurrentSentence

ReplaceCurrentSentence(replaceString, [type])

Replaces the current sentence with the specified string.

Parameters:

Name Type Default Description
replaceString string

Replacement string.

type TextPartType "entirely"

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

Returns:

This method doesn't return any data.

Example

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