UNPKG

@wangeditor-next/editor

Version:
19 lines (18 loc) 640 B
/** * @description header menu * @author wangfupeng */ import { IDomEditor, IOption, ISelectMenu } from '@wangeditor-next/core'; declare abstract class BaseMenu implements ISelectMenu { abstract readonly title: string; abstract readonly iconSvg: string; abstract readonly mark: string; readonly tag = "select"; readonly width = 80; abstract getOptions(editor: IDomEditor): IOption[]; isActive(_editor: IDomEditor): boolean; getValue(editor: IDomEditor): string | boolean; isDisabled(editor: IDomEditor): boolean; exec(editor: IDomEditor, value: string | boolean): void; } export default BaseMenu;