@wangeditor-next/editor
Version:
Web rich text editor, Web 富文本编辑器
19 lines (18 loc) • 611 B
TypeScript
/**
* @description base menu
* @author wangfupeng
*/
import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
declare abstract class BaseMenu implements IButtonMenu {
readonly type = "list-item";
abstract readonly ordered: boolean;
abstract readonly title: string;
abstract readonly iconSvg: string;
readonly tag = "button";
private getListNode;
getValue(_editor: IDomEditor): string | boolean;
isActive(editor: IDomEditor): boolean;
isDisabled(editor: IDomEditor): boolean;
exec(editor: IDomEditor, _value: string | boolean): void;
}
export default BaseMenu;