From bff5ed6403edaf22f08a36db02dbacf040a0705c Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 22 Nov 2025 16:24:26 +0100 Subject: [PATCH] fix(components): use correct SetContentOptions in TipTap.vue - Replace false with {emitUpdate: false} in setContent calls - Fix 3 SetContentOptions type errors --- frontend/src/components/input/editor/TipTap.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/input/editor/TipTap.vue b/frontend/src/components/input/editor/TipTap.vue index ff7d0ca71..ff9159651 100644 --- a/frontend/src/components/input/editor/TipTap.vue +++ b/frontend/src/components/input/editor/TipTap.vue @@ -584,7 +584,7 @@ function bubbleSave() { } function exitEditMode() { - editor.value?.commands.setContent(lastSavedState, false) + editor.value?.commands.setContent(lastSavedState, {emitUpdate: false}) if (isEditing.value) { internalMode.value = 'preview' } @@ -630,9 +630,9 @@ function uploadAndInsertFiles(files: File[] | FileList) { }) const html = editor.value?.getHTML().replace(UPLOAD_PLACEHOLDER_ELEMENT, '') ?? '' - - editor.value?.commands.setContent(html, false) - + + editor.value?.commands.setContent(html, {emitUpdate: false}) + bubbleNow() }) } @@ -690,7 +690,7 @@ onBeforeUnmount(() => { function setModeAndValue(value: string) { internalMode.value = isEditorContentEmpty(value) ? 'edit' : 'preview' - editor.value?.commands.setContent(value, false) + editor.value?.commands.setContent(value, {emitUpdate: false}) }