Skip to content

Commit a465026

Browse files
committed
tiptap is stupid
1 parent 2319dc1 commit a465026

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

components/docs/RichDocumentEditor.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
import { useCallback, useEffect, useRef, useState } from "react";
44
import clsx from "clsx";
5-
import { useEditor, EditorContent, BubbleMenu } from "@tiptap/extension-bubble-menu/react";
5+
import { useEditor, EditorContent } from "@tiptap/react";
6+
import { BubbleMenu } from '@tiptap/react/menus';
67
import StarterKit from "@tiptap/starter-kit";
78
import Underline from "@tiptap/extension-underline";
89
import Link from "@tiptap/extension-link";
@@ -362,7 +363,7 @@ export default function RichDocumentEditor({
362363
{editor && !disabled && (
363364
<BubbleMenu
364365
editor={editor}
365-
tippyOptions={{ duration: 100, placement: "top", offset: [0, 8] }}
366+
options={{ placement: "top", offset: 10 }}
366367
className="flex items-center gap-0.5 rounded-lg border border-zinc-200/90 bg-white/95 p-0.5 shadow-xl backdrop-blur-sm dark:border-zinc-700 dark:bg-zinc-900/95"
367368
>
368369
<BubbleBtn

0 commit comments

Comments
 (0)