UNPKG

reactjs-tiptap-editor

Version:

A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React

22 lines (21 loc) 634 B
import { Extension } from '@tiptap/core'; import { GeneralOptions, PaperSize, PageMargin } from '../../types'; declare module '@tiptap/core' { interface Commands<ReturnType> { exportPdf: { exportToPdf: () => ReturnType; }; } } export interface ExportPdfOptions extends GeneralOptions<ExportPdfOptions> { paperSize: PaperSize; title?: string; margins: { top?: PageMargin; right?: PageMargin; bottom?: PageMargin; left?: PageMargin; }; } export * from './components/RichTextExportPdf'; export declare const ExportPdf: Extension<ExportPdfOptions, any>;