From b92735b0e907bf7613b106ea633b82efa7f1781a Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Wed, 4 Jun 2025 13:27:32 +0200 Subject: [PATCH] feat: mini tiptap improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The TipTap editor now uses Vue’s defineModel for its reactive value, simplifies editability control with watchEffect, and correctly types DOM image elements. Summary Imported watchEffect and switched to defineModel for the editor’s v-model, removing the old update:modelValue emit Typed the retrieved image element as HTMLImageElement and removed debugging output from the paste handler Replaced the watcher controlling editability with a simpler watchEffect and updated model handling to use the new model ref --- .../src/components/input/editor/TipTap.vue | 70 +++++++------------ 1 file changed, 27 insertions(+), 43 deletions(-) diff --git a/frontend/src/components/input/editor/TipTap.vue b/frontend/src/components/input/editor/TipTap.vue index a85dbc735..72cf41c04 100644 --- a/frontend/src/components/input/editor/TipTap.vue +++ b/frontend/src/components/input/editor/TipTap.vue @@ -142,7 +142,7 @@