From 66bd63403b46ea1c9dfbe796d728cbce94ae35d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 28 May 2025 16:31:59 +0200 Subject: [PATCH 1/5] Update event binding in CKEditor5 component template Replaces the deprecated `@input` event with the `@update:modelValue` event to ensure compatibility with Vue 3. This improves handling of two-way binding for the `v-model` directive. --- .../ChillMainBundle/Resources/public/module/ckeditor5/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/module/ckeditor5/index.ts b/src/Bundle/ChillMainBundle/Resources/public/module/ckeditor5/index.ts index 25ab1f55e..783c0acfa 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/module/ckeditor5/index.ts +++ b/src/Bundle/ChillMainBundle/Resources/public/module/ckeditor5/index.ts @@ -15,7 +15,7 @@ ckeditorFields.forEach((field: HTMLTextAreaElement): void => { createApp({ components: { CommentEditor }, - template: ``, + template: ``, data() { return { content, From d82727f831c82acb6815db5abdbca97968db59eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 28 May 2025 16:32:25 +0200 Subject: [PATCH 2/5] Update CommentEditor styles for responsiveness Imported Bootstrap variables and updated styling to use responsive media breakpoints. Adjusted positioning of toggle buttons to ensure proper alignment on different screen sizes. --- .../CommentEditor/CommentEditor.vue | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/CommentEditor/CommentEditor.vue b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/CommentEditor/CommentEditor.vue index 7ebd78cf1..d6019fabe 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/CommentEditor/CommentEditor.vue +++ b/src/Bundle/ChillMainBundle/Resources/public/vuejs/_components/CommentEditor/CommentEditor.vue @@ -24,7 +24,6 @@ const toggleButtonClass = computed(() => { }); const toggleEditor = () => { - console.log("toggleEditor"); let newValue; newValue = kind.value === "simple" ? "rich" : "simple"; @@ -32,8 +31,6 @@ const toggleEditor = () => { window.localStorage.setItem(EDITOR_MODE_KEY, newValue); window.dispatchEvent(new Event("toggleEditorKind")); - - console.log("new storage", window.localStorage.getItem(EDITOR_MODE_KEY)); }; const onKindChange = function (/* event: StorageEvent | Event */) { @@ -96,6 +93,8 @@ onUnmounted(function () {