/** * @description update link menu * @author wangfupeng */ import { Node } from 'slate'; import { IModalMenu, IDomEditor } from '@wangeditor/core'; import { DOMElement } from '../../../utils/dom'; declare class EditLinkMenu implements IModalMenu { readonly title: string; readonly iconSvg = ""; readonly tag = "button"; readonly showModal = true; readonly modalWidth = 300; private $content; private urlInputId; private buttonId; private getSelectedLinkElem; /** * 获取 node.url * @param editor editor */ getValue(editor: IDomEditor): string | boolean; isActive(editor: IDomEditor): boolean; exec(editor: IDomEditor, value: string | boolean): void; isDisabled(editor: IDomEditor): boolean; getModalPositionNode(editor: IDomEditor): Node | null; getModalContentElem(editor: IDomEditor): DOMElement; } export default EditLinkMenu;