fix: AI Writer index slashCommands corrigé
L'item 'Écrire avec l'IA' était inséré au milieu du tableau, décalant tous les index. Déplacé à la fin (index 37).
This commit is contained in:
@@ -176,9 +176,6 @@ const slashCommands: SlashItem[] = [
|
|||||||
{
|
{
|
||||||
title: 'Développer', description: 'Élaborer et enrichir le texte', icon: Expand, category: 'IA Note', isAi: true, aiOption: 'clarify', command: () => { }
|
title: 'Développer', description: 'Élaborer et enrichir le texte', icon: Expand, category: 'IA Note', isAi: true, aiOption: 'clarify', command: () => { }
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: 'Écrire avec l\'IA', description: 'Générer du contenu au curseur', icon: Sparkles, category: 'IA Note', isAi: true, aiOption: 'write', command: () => { }
|
|
||||||
},
|
|
||||||
// Formatting extensions
|
// Formatting extensions
|
||||||
{ title: 'Bold', description: 'Make text bold', icon: Bold, category: 'Formatting', command: (e) => e.chain().focus().toggleBold().run() },
|
{ title: 'Bold', description: 'Make text bold', icon: Bold, category: 'Formatting', command: (e) => e.chain().focus().toggleBold().run() },
|
||||||
{ title: 'Italic', description: 'Make text italic', icon: Italic, category: 'Formatting', command: (e) => e.chain().focus().toggleItalic().run() },
|
{ title: 'Italic', description: 'Make text italic', icon: Italic, category: 'Formatting', command: (e) => e.chain().focus().toggleItalic().run() },
|
||||||
@@ -241,6 +238,9 @@ const slashCommands: SlashItem[] = [
|
|||||||
title: 'Columns', description: 'Side-by-side layout', icon: Columns3, category: 'Basic blocks', shortcut: '/cols',
|
title: 'Columns', description: 'Side-by-side layout', icon: Columns3, category: 'Basic blocks', shortcut: '/cols',
|
||||||
command: (e) => { insertColumnsBlock(e, 2) },
|
command: (e) => { insertColumnsBlock(e, 2) },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: 'Écrire avec l\'IA', description: 'Générer du contenu au curseur', icon: Sparkles, category: 'IA Note', isAi: true, aiOption: 'write', command: () => { }
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
async function aiReformulate(text: string, option: string, t: any, language?: string): Promise<string> {
|
async function aiReformulate(text: string, option: string, t: any, language?: string): Promise<string> {
|
||||||
|
|||||||
Reference in New Issue
Block a user