ai.commands.promptFunction

The prompt for the command. The function accepts the following arguments:

  • context - The text in the editor.

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
    ai: {
        commands: [{
            text: "Proofread",
            prompt: function(context) {
                return "Please proofread and correct any errors in the following text: " + context;
            }
        }]
    }
});
</script>
In this article
ai.commands.prompt
Not finding the help you need?
Contact Support