UNPKG

@wangeditor-kai/yjs-for-react

Version:

React specific components/utils for wangeditor-next-yjs.

19 lines (18 loc) 611 B
/** * @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;