Skip to main content

InsertHtmlCommand.execute(html) Method

Executes the InsertHtmlCommand command with the specified parameter.

Declaration

execute(
    html: string
): boolean

Parameters

Name Type Description
html string

A string that specifies the inserted HTML code.

Returns

Type Description
boolean

true if the command has been successfully executed; false if the command execution has failed.

Remarks

Usage example:

richEdit.commands.insertHtml.execute("<b>SomeBoldText</b>")
richEdit.commands..insertHtml.execute("<table border=\"2\"><tr><td>Text</td></tr></table>")
See Also