Executes an editor command on the currently selected text.


name String

The name of the command to be executed. The available names match the list of tools, plus "undo" and "redo".

params String|Object (optional)

The parameters for the executed command.

params.value Object

The arguments for commands that expect such


<textarea id="editor"></textarea>
$("#editor").kendoEditor({ value: "foo" });
var editor = $("#editor").data("kendoEditor");
editor.exec("foreColor", { value: "#f00" });
In this article
Not finding the help you need? Improve this article