UNPKG

editcrafter

Version:

To use **EditCrafter** with Tailwind CSS, you need to set up Tailwind CSS in your project. Here's a step-by-step guide to help you integrate Tailwind CSS and customize your `tailwind.config.js` file for use with **EditCrafter**.

25 lines (24 loc) 659 B
import { Editor } from '@tiptap/react'; import { Node } from '@tiptap/pm/model'; interface UseImageActionsProps { editor: Editor; node: Node; src: string; onViewClick: (value: boolean) => void; } export type ImageActionHandlers = { onView?: () => void; onDownload?: () => void; onCopy?: () => void; onCopyLink?: () => void; onRemoveImg?: () => void; }; export declare const useImageActions: ({ editor, node, src, onViewClick }: UseImageActionsProps) => { isLink: boolean; onView: () => void; onDownload: () => void; onCopy: () => void; onCopyLink: () => void; onRemoveImg: () => void; }; export {};