| 1 | import { ReactNodeViewRenderer } from "@tiptap/react"; |
| 2 | import { SharedCalloutExtension } from "@/shared/editor/schema"; |
| 3 | import { CalloutView } from "./view"; |
| 4 | |
| 5 | export const CalloutExtension = SharedCalloutExtension.extend({ |
| 6 | addNodeView() { |
| 7 | return ReactNodeViewRenderer(CalloutView); |
| 8 | }, |
| 9 | }); |