From 42256a80db25fd655cb99ca105ca45655032e5bf Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 15 Jan 2024 11:52:10 +0100 Subject: [PATCH] feat(editor): Use custom implementation of a bubble plugin for the link bubble Signed-off-by: Jonas --- src/components/Editor/ContentContainer.vue | 3 - ...{LinkViewBubble.vue => LinkBubbleView.vue} | 251 ++++++++++-------- src/extensions/LinkBubble.js | 27 ++ src/extensions/LinkBubblePluginView.js | 225 ++++++++++++++++ src/extensions/RichText.js | 2 + 5 files changed, 387 insertions(+), 121 deletions(-) rename src/components/Link/{LinkViewBubble.vue => LinkBubbleView.vue} (52%) create mode 100644 src/extensions/LinkBubble.js create mode 100644 src/extensions/LinkBubblePluginView.js diff --git a/src/components/Editor/ContentContainer.vue b/src/components/Editor/ContentContainer.vue index 8d0311e0a02..9daf5e587e5 100644 --- a/src/components/Editor/ContentContainer.vue +++ b/src/components/Editor/ContentContainer.vue @@ -34,7 +34,6 @@ role="document" class="editor__content text-editor__content" :editor="$editor" /> -
@@ -44,14 +43,12 @@ import { EditorContent } from '@tiptap/vue-2' import { useEditorMixin } from '../Editor.provider.js' import { useOutlineStateMixin } from './Wrapper.provider.js' import EditorOutline from './EditorOutline.vue' -import LinkViewBubble from '../Link/LinkViewBubble.vue' export default { name: 'ContentContainer', components: { EditorContent, EditorOutline, - LinkViewBubble, }, mixins: [useEditorMixin, useOutlineStateMixin], computed: { diff --git a/src/components/Link/LinkViewBubble.vue b/src/components/Link/LinkBubbleView.vue similarity index 52% rename from src/components/Link/LinkViewBubble.vue rename to src/components/Link/LinkBubbleView.vue index ffab138f0cd..30368d79e30 100644 --- a/src/components/Link/LinkViewBubble.vue +++ b/src/components/Link/LinkBubbleView.vue @@ -1,89 +1,96 @@