/** * @description update link menu * @author wangfupeng */ import { IDomEditor, IModalMenu } from '@wangeditor-next/core'; import { Node } from 'slate'; 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;