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.
This commit is contained in:
Julien Fastré 2025-05-28 16:31:59 +02:00
parent 992e6d29d0
commit 66bd63403b
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -15,7 +15,7 @@ ckeditorFields.forEach((field: HTMLTextAreaElement): void => {
createApp({ createApp({
components: { CommentEditor }, components: { CommentEditor },
template: `<comment-editor v-model="content" @input="handleInput"></comment-editor>`, template: `<comment-editor v-model="content" @update:modelValue="handleInput"></comment-editor>`,
data() { data() {
return { return {
content, content,