diff --git a/example/src/App.vue b/example/src/App.vue index 00097e3..f48ee71 100644 --- a/example/src/App.vue +++ b/example/src/App.vue @@ -108,7 +108,7 @@ const editor = useEditor({ ExtensionTaskList, ExtensionTaskItem, ExtensionLink.configure({ - autolink: true, + autolink: false, openOnClick: false, }), ExtensionTextAlign.configure({ diff --git a/packages/editor/src/components/EditorBubbleMenu.vue b/packages/editor/src/components/EditorBubbleMenu.vue index 477eb45..3bddcf3 100644 --- a/packages/editor/src/components/EditorBubbleMenu.vue +++ b/packages/editor/src/components/EditorBubbleMenu.vue @@ -5,6 +5,7 @@ import type { PropType } from "vue"; import { BubbleMenu, Editor } from "@tiptap/vue-3"; import type { MenuItem } from "@/types"; import { VTooltip } from "floating-vue"; +import EditorLinkBubbleMenuItems from "./EditorLinkBubbleMenuItems.vue"; defineProps({ editor: { @@ -29,13 +30,20 @@ defineProps({ + +
+
+
+ + diff --git a/packages/editor/src/components/EditorLinkBubbleMenuItems.vue b/packages/editor/src/components/EditorLinkBubbleMenuItems.vue new file mode 100644 index 0000000..4cd5588 --- /dev/null +++ b/packages/editor/src/components/EditorLinkBubbleMenuItems.vue @@ -0,0 +1,96 @@ + + +