[PR #862] feat: mini tiptap improvements #1010

Open
opened 2025-11-01 21:09:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/862
Author: @dpschen
Created: 6/4/2025
Status: 🔄 Open

Base: mainHead: feat/TipTap-nits


📝 Commits (1)

  • f1a2d06 feat: mini tiptap improvements

📊 Changes

1 file changed (+20 additions, -35 deletions)

View changed files

📝 frontend/src/components/input/editor/TipTap.vue (+20 -35)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/862 **Author:** [@dpschen](https://github.com/dpschen) **Created:** 6/4/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat/TipTap-nits` --- ### 📝 Commits (1) - [`f1a2d06`](https://github.com/go-vikunja/vikunja/commit/f1a2d063ce0368680d11e7d3bcdb7c50563b13ce) feat: mini tiptap improvements ### 📊 Changes **1 file changed** (+20 additions, -35 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/input/editor/TipTap.vue` (+20 -35) </details> ### 📄 Description 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-01 21:09:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#1010