UNPKG

@yangeditor/plugin-upload-attachment

Version:
19 lines (18 loc) 775 B
/** * @description download attachment menu * @author wangfupeng */ import { IDomEditor } from '@wangeditor/editor'; import { IButtonMenu } from '@wangeditor/editor'; declare class DownloadAttachmentMenu implements IButtonMenu { readonly title: string; readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M736 448l-256 256-256-256h160V64h192v384z m-256 256H0v256h960v-256H480z m416 128h-128v-64h128v64z\"></path></svg>"; readonly tag = "button"; readonly alwaysEnable = true; getValue(editor: IDomEditor): string | boolean; isActive(editor: IDomEditor): boolean; exec(editor: IDomEditor, value: string | boolean): void; isDisabled(editor: IDomEditor): boolean; private getSelectedElem; } export default DownloadAttachmentMenu;