From cebcb50903a757aa0bb00f1ed4eb5b048cd85e66 Mon Sep 17 00:00:00 2001 From: Alexis Date: Sat, 9 Aug 2025 18:55:55 +0200 Subject: [PATCH] Added tooltip on rich text --- app/components/global/input/Editor.vue | 253 +++++++++++++++++-------- i18n/i18n.config.ts | 22 +++ 2 files changed, 198 insertions(+), 77 deletions(-) diff --git a/app/components/global/input/Editor.vue b/app/components/global/input/Editor.vue index ac0d508..05eb186 100644 --- a/app/components/global/input/Editor.vue +++ b/app/components/global/input/Editor.vue @@ -33,96 +33,195 @@ function clearFormatting() {
- - - + + + + + + + + +

+ {{ $t('editor.bold') }} +

+
+
+
- - - + + + + + + + + +

+ {{ $t('editor.italic') }} +

+
+
+
- - - + + + + + + + + +

+ {{ $t('editor.strike') }} +

+
+
+
- - - + + + + + + + + +

+ {{ $t('editor.ulist') }} +

+
+
+
- - - + + + + + + + + +

+ {{ $t('editor.olist') }} +

+
+
+
- - - + + + + + + + + +

+ {{ $t('editor.quote') }} +

+
+
+
- - - + + + + + + + + +

+ {{ $t('editor.noFormat') }} +

+
+
+
- - - + + + + + + + + +

+ {{ $t('editor.undo') }} +

+
+
+
- - - + + + + + + + + +

+ {{ $t('editor.redo') }} +

+
+
+
diff --git a/i18n/i18n.config.ts b/i18n/i18n.config.ts index 475266e..db7c35a 100644 --- a/i18n/i18n.config.ts +++ b/i18n/i18n.config.ts @@ -86,6 +86,17 @@ export default defineI18nConfig(() => ({ createdAt: "Created {createdAt}", updatedAt: "Last updated {updatedAt}", }, + editor: { + bold: "Bold", + italic: "Italic", + strike: "Strikethrough", + ulist: "Bullet list", + olist: "Numbered list", + quote: "Quote", + noFormat: "Remove formatting", + undo: "Undo", + redo: "Redo" + }, entity: { category: { nameSingular: "Category", @@ -421,6 +432,17 @@ export default defineI18nConfig(() => ({ createdAt: "Créé le {createdAt}", updatedAt: "Dernière modification le {updatedAt}", }, + editor: { + bold: "Gras", + italic: "Italique", + strike: "Barré", + ulist: "Liste à puces", + olist: "Liste numerotée", + quote: "Citation", + noFormat: "Effacer le formattage", + undo: "Annuler", + redo: "Rétablir" + }, entity: { category: { nameSingular: "Catégorie",