SCEditor

execCommand()

execCommand(command, param) Since: 1.3.0

Executes a native browser content editable command against the WYSIWYG editor.

Important: There are some inconsistencies in how commands are handled across browsers and not all browsers support all commands.

Syntax

instance.execCommand(command, param);

Parameters

command
Type: String

Name of the command. See Rich-Text Editing in Mozilla for a list of commands.

param
Type: String

The param, if any, to pass when executing the command.