/** * @description insert formula menu * @author wangfupeng */ import { IModalMenu } from '@wangeditor/editor'; import { IDomEditor, SlateNode } from '@wangeditor/editor'; import { DOMElement } from '../../utils/dom'; declare class InsertFormulaMenu implements IModalMenu { readonly title: string; readonly iconSvg = ""; readonly tag = "button"; readonly showModal = true; readonly modalWidth = 300; private $content; private readonly textareaId; private readonly buttonId; getValue(editor: IDomEditor): string | boolean; isActive(editor: IDomEditor): boolean; exec(editor: IDomEditor, value: string | boolean): void; isDisabled(editor: IDomEditor): boolean; getModalPositionNode(editor: IDomEditor): SlateNode | null; getModalContentElem(editor: IDomEditor): DOMElement; private insertFormula; } export default InsertFormulaMenu;