UNPKG

@bettaibi/react-blocknote

Version:

A modern, versatile rich text editor component for React applications with an elegant UI and Notion-like functionality. Supports both React 18 and React 19.

38 lines (37 loc) 1.19 kB
export declare function useBlockNoteHandlers(): { handleBold: () => void; handleItalic: () => void; handleUnderline: () => void; handleStrike: () => void; handleCode: () => void; handleHeading1: () => void; handleHeading2: () => void; handleHeading3: () => void; handleHeading4: () => void; handleHeading5: () => void; handleHeading6: () => void; handleNormalText: () => void; handleBulletList: () => void; handleOrderedList: () => void; handleTaskList: () => void; handleCodeBlock: () => void; handleBlockquote: () => void; handleAlignLeft: () => void; handleAlignCenter: () => void; handleAlignRight: () => void; handleUndo: () => void; handleRedo: () => void; handleImage: ({ src, alt }: { src: string; alt?: string | undefined; }) => void; handleLink: (href: string) => void; handleInsertTable: () => void; handleDeleteTable: () => void; handleAddColumnBefore: () => void; handleAddColumnAfter: () => void; handleDeleteColumn: () => void; handleAddRowBefore: () => void; handleAddRowAfter: () => void; handleDeleteRow: () => void; };