UNPKG

plugin-audio

Version:
17 lines (16 loc) 1.05 kB
/** * @description upload audio menu * @author wulijie */ import { IButtonMenu, IDomEditor } from '@wangeditor/editor'; declare class UploadAudioMenu implements IButtonMenu { readonly title: string; readonly iconSvg = "<svg viewBox=\"0 0 1024 1024\"><path d=\"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0z m0 981.333333C253.866667 981.333333 42.666667 770.133333 42.666667 512S253.866667 42.666667 512 42.666667s469.333333 211.2 469.333333 469.333333-211.2 469.333333-469.333333 469.333333z\"></path><path d=\"M672 441.6l-170.666667-113.066667c-57.6-38.4-106.666667-12.8-106.666666 57.6v256c0 70.4 46.933333 96 106.666666 57.6l170.666667-113.066666c57.6-42.666667 57.6-106.666667 0-145.066667z\"></path></svg>"; readonly tag = "button"; getValue(editor: IDomEditor): string | boolean; isActive(editor: IDomEditor): boolean; exec(editor: IDomEditor, value: string | boolean): void; isDisabled(editor: IDomEditor): boolean; private getMenuConfig; } export default UploadAudioMenu;