/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net */ /** * [[include:plugins/link/README.md]] * @packageDocumentation * @module plugins/link */ import type { IJodit } from "../../types/index"; import { Plugin } from "../../core/plugin/index"; import "./config"; /** * Process link. Insert, dblclick or remove format */ export declare class link extends Plugin { /** @override */ buttons: Plugin['buttons']; /** @override */ protected afterInit(jodit: IJodit): void; private __onDblClickOnLink; private onProcessPasteLink; private __generateForm; /** @override */ protected beforeDestruct(jodit: IJodit): void; private __onTypedSpace; /** * Where the caret was when Enter was pressed. Enter splits the line in a * history transaction, so the link waits until it's over */ private __enteredAt; private __linkAfterEnter; private __onBeforeEnter; private __onAfterEnter; /** * The link just made, which Backspace straight after takes off again, as * in CKEditor 5. Any other key but a modifier, a click or a command * forgets it */ private __justLinked; private __forgetLink; private __onKeyDown; /** * Links the address that ends at `end` in a text node, as a step of its * own in the history, so Undo straight after takes the link off and * leaves the text */ private __linkTyped; /** * Reports what's changed and makes it a history step of its own */ private __recordStep; private __onClickReadOnlyLink; }