UNPKG

@yangeditor/plugin-upload-attachment

Version:
18 lines (17 loc) 468 B
/** * @description helper fns * @author wangfupeng */ import { IDomEditor } from '@wangeditor/editor'; /** * 插入 attachment 节点 * @param fileName fileName * @param link link */ export declare function insertAttachment(editor: IDomEditor, fileName: string, link: string): void; /** * 上传附件文件 * @param editor editor * @param files files */ export declare function uploadAttachments(editor: IDomEditor, files: FileList | null): Promise<void>;