tools.exec Function

The JavaScript function which will be executed when the end-user clicks the tool button.

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  tools: [
    {
      name: "custom",
      exec: function(e) {
        var editor = this;
        // ...
      }
    }
  ]
});
</script>
In this article