Editor object exposes an execCommand method to run commands that manipulate the current editable region.
editor.execCommand(command,optionalValue)
Specifies the name of the command to execute on the selected section.
Some commands need a value to be completed.