From d6449b933635bfb015c1c613243eabbb2b2d3432 Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Sun, 9 Mar 2025 20:37:21 +0530 Subject: [PATCH] feat: adds link functionality to tiptap text editor --- frontend/package.json | 2 +- frontend/pnpm-lock.yaml | 2 +- .../conversation/ConversationTextEditor.vue | 57 ++++++++++++++++++- 3 files changed, 58 insertions(+), 3 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index f97d7fc1..59ed4702 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,7 +21,7 @@ "@tailwindcss/typography": "^0.5.16", "@tanstack/vue-table": "^8.19.2", "@tiptap/extension-image": "^2.5.9", - "@tiptap/extension-link": "^2.9.1", + "@tiptap/extension-link": "^2.11.2", "@tiptap/extension-placeholder": "^2.4.0", "@tiptap/pm": "^2.4.0", "@tiptap/starter-kit": "^2.4.0", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index e7a83b13..69829f33 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -27,7 +27,7 @@ importers: specifier: ^2.5.9 version: 2.11.2(@tiptap/core@2.11.2(@tiptap/pm@2.11.2)) '@tiptap/extension-link': - specifier: ^2.9.1 + specifier: ^2.11.2 version: 2.11.2(@tiptap/core@2.11.2(@tiptap/pm@2.11.2))(@tiptap/pm@2.11.2) '@tiptap/extension-placeholder': specifier: ^2.4.0 diff --git a/frontend/src/features/conversation/ConversationTextEditor.vue b/frontend/src/features/conversation/ConversationTextEditor.vue index 66f5c174..54d75dfc 100644 --- a/frontend/src/features/conversation/ConversationTextEditor.vue +++ b/frontend/src/features/conversation/ConversationTextEditor.vue @@ -62,6 +62,28 @@ > + +
+ + + +
@@ -71,7 +93,17 @@