executeCommand

Executes a command.

Parameters

command String

The command to execute.

args Object (optional)

The command arguments.

Example

<div id="imageEditor"></div>
<script>
    $("#imageEditor").kendoImageEditor({
        height: 500,
        imageUrl: "image.jpg",
        imageRendered: function (ev) {
            var imageEditor = ev.sender;
            imageEditor.executeCommand({ command: "ZoomImageEditorCommand", options: imageEditor.getZoomLevel() - 0.01 });
        }
    });
</script>
In this article