@wangeditor-next/yjs-for-react
Version:
React specific components/utils for wangeditor-next-yjs.
21 lines (20 loc) • 704 B
TypeScript
/**
* @description base menu
* @author wangfupeng
*/
import { IButtonMenu, IDomEditor } from '@wangeditor-next/core';
import { OrderedListType } from '../custom-types';
declare abstract class BaseMenu implements IButtonMenu {
readonly type = "list-item";
abstract readonly ordered: boolean;
readonly orderType?: OrderedListType;
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;