ai.inlineAIPrompt.commandsArray

Defines the commands for the inline AI Prompt tool. The commands are displayed in the inline AI Prompt dropdown.

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  ai: {
    inlineAIPrompt: {
      commands: [
        {
          id: "funnier",
          text: "Make the text funnier",
          icon: "star",
          prompt: (context) => `Make the following text funnier: ${context}`
        }
      ]
    }
  }
});
</script>