UNPKG

plugin-audio

Version:
26 lines (25 loc) 907 B
/** * @description 修改音频尺寸 * @author wulijie */ import { Node as SlateNode } from 'slate'; import { IModalMenu, IDomEditor } from '@wangeditor/editor'; import { DOMElement } from '../../utils/dom'; declare class EditorAudioSizeMenu implements IModalMenu { readonly title: string; readonly tag = "button"; readonly showModal = true; readonly modalWidth = 320; private $content; private readonly widthInputId; private readonly heightInputId; private readonly buttonId; private getSelectedAudioNode; getValue(editor: IDomEditor): string | boolean; isActive(editor: IDomEditor): boolean; exec(editor: IDomEditor, value: string | boolean): void; isDisabled(editor: IDomEditor): boolean; getModalPositionNode(editor: IDomEditor): SlateNode | null; getModalContentElem(editor: IDomEditor): DOMElement; } export default EditorAudioSizeMenu;