Skip to main content
A newer version of this page is available. .

ReplaceAllCommand Methods

A command to search for a specific text and replace all matches in the document with the specified string.
Name Description
execute(text, replaceText, matchCase)

Executes the ReplaceAllCommand command by applying the specified settings.

May result in taking no action if the command’s state does not allow command execution. Use the object’s getState method to check the command state.

getState Inherited from CommandWithSimpleStateBase.
See Also