ai.aiPrompt.commandsArray

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

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
  ai: {
    aiPrompt: {
      commands: [
        {
          id: "1",
          text: "Make the text funnier",
          icon: "star",
          prompt: (context) => `Make the following text funnier: ${context}`
        }
      ]
    }
  }
});
</script>
In this article
ai.aiPrompt.commands
Not finding the help you need?
Contact Support