[WIKI-640] chore: refactor link view #7727
This commit is contained in:
parent
a1500c2206
commit
af1dcd335e
2 changed files with 17 additions and 3 deletions
14
packages/editor/src/ce/components/link-container.tsx
Normal file
14
packages/editor/src/ce/components/link-container.tsx
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { Editor } from "@tiptap/core";
|
||||
import { LinkViewContainer } from "@/components/editors/link-view-container";
|
||||
|
||||
export const LinkContainer = ({
|
||||
editor,
|
||||
containerRef,
|
||||
}: {
|
||||
editor: Editor;
|
||||
containerRef: React.RefObject<HTMLDivElement>;
|
||||
}) => (
|
||||
<>
|
||||
<LinkViewContainer editor={editor} containerRef={containerRef} />
|
||||
</>
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue