Replaces the selected text.


Parameters:

NameTypeDescription
actionNameString'repalceText' text replacing API
textStringText to replace


Example:

editor.execCommand('replaceText', 'text');