Add Emoji and Fullscreen features to CKEditor configuration

Integrated Emoji, Mention (required for Emoji), and Fullscreen plugins into the CKEditor setup. Updated the toolbar to include respective buttons, enhancing functionality and user interaction.
This commit is contained in:
2025-05-23 13:33:47 +02:00
parent 5c9396077d
commit 976f293f28
2 changed files with 19 additions and 0 deletions

View File

@@ -8,6 +8,9 @@ import {
Heading,
Link,
List,
Emoji,
Mention,
Fullscreen,
} from "ckeditor5";
import coreTranslations from "ckeditor5/translations/fr.js";
@@ -26,6 +29,11 @@ export default {
Link,
List,
Paragraph,
// both Emoji and Mention are required for Emoji feature
Emoji,
Mention,
// to enable fullscreen
Fullscreen,
],
toolbar: {
items: [
@@ -37,8 +45,13 @@ export default {
"bulletedList",
"numberedList",
"blockQuote",
"|",
"emoji",
"|",
"undo",
"redo",
"|",
"fullscreen",
],
},
translations: [coreTranslations],