exec

Executes an editor command on the currently selected text.

Parameters

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

Example

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