wangeditor-plugin-upload-pdf
Version:
18 lines (17 loc) • 687 B
TypeScript
/**
* @description menu config
* @author wangfupeng
*/
import { IUploadConfig } from '@wangeditor-next/editor';
import { PDFElement } from '../custom-types';
import { UppyFile } from '@uppy/core';
declare type InsertFn = (fileName: string, link: string) => void;
export declare type IUploadConfigForPDF = IUploadConfig & {
allowedFileTypes?: string[];
customInsert?: (res: any, file: UppyFile, insertFn: InsertFn) => void;
customUpload?: (files: File, insertFn: InsertFn) => void;
customBrowseAndUpload?: (insertFn: InsertFn) => void;
onInsertedPDF?: (elem: PDFElement) => void;
};
export declare function getUploadPDFMenuConfig(): IUploadConfigForPDF;
export {};