@wangeditor-next/editor
Version:
Web rich text editor, Web 富文本编辑器
19 lines (18 loc) • 640 B
TypeScript
/**
* @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;