-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathindex.js
More file actions
21 lines (20 loc) · 868 Bytes
/
index.js
File metadata and controls
21 lines (20 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var editor = new ej.richtexteditor.RichTextEditor({
toolbarSettings: {
items: ['aicommands', 'aiquery']
},
aiAssistantSettings: {
commands: [
{ text: 'Rewrite', prompt: 'Rewrite the content to be more refined.' },
{ text: 'Elaborate', prompt: 'Expand on the following content with more detail and explanation:' },
{
text: 'Change Tone',
items: [
{ text: 'Professional', prompt: 'Rewrite the following content in a professional tone:' },
{ text: 'Casual', prompt: 'Rewrite the following content in a casual, conversational tone:' },
{ text: 'Direct', prompt: 'Rewrite the following content to be more direct and to the point:' },
],
},
]
},
});
editor.appendTo('#editor');