/*! * 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/inline-popup/README.md]] * @packageDocumentation * @module plugins/inline-popup */ import type { IJodit } from "../../types/index"; import { Plugin } from "../../core/plugin/index"; import "./config/config"; /** * Plugin for show inline popup dialog */ export declare class inlinePopup extends Plugin { static requires: string[]; private type; private get popup(); private get toolbar(); private onClick; /** * The box the popup opens beside: the target's, with room for the * resizer's handles when the target gets them, so it doesn't cover them */ private __bound; /** * Show inline popup with some toolbar * * @param type - selection, img, a etc. * @param force - make the popup again for the same target */ private showPopup; private previousTarget?; /** * Hide opened popup */ private hidePopup; protected onOutsideClick(): void; /** * A key that moves the caret off an element closes its popup, and one * that moves the caret into an element with a popup (a link) opens it, * as clicks do */ protected onKeyUp(): void; private __followCaret; /** * The element with a popup that holds `node` */ private __elementAt; /** * Can show popup for this type */ private canShowPopupForType; /** * For some elements do not show popup */ private isExcludedTarget; /** @override **/ protected afterInit(jodit: IJodit): void; /** * Follow the element once a control has moved it, as the alignments do */ protected onRecalcPositionPopup(): void; /** * The selection rect comes from the editor document — in iframe mode its * coordinates are iframe-local, while the popup lives in the host * document, so the iframe offset must be added. See * https://github.com/xdan/jodit/issues/1058 */ private __selectionBound; private snapRange; private onSelectionStart; private __keyDownElement; private onSelectionEnd; /** * Selection change handler */ private onSelectionChange; /** * The selection holds more than a line break. A double click past the end * of a line, or a drag from there into the next, selects only the break, * with any rule, video or empty line it crosses: it starts at the end of a * line, after everything in it, and holds no text that shows */ private __hasSelectedContent; /** * In not collapsed selection - only one image */ private isSelectedTarget; /** * Shortcut for Table module */ /** @override **/ protected beforeDestruct(jodit: IJodit): void; private elmsList; private _eventsList; private addListenersForElements; private removeListenersForElements; /** * Show the inline WYSIWYG toolbar editor. */ private showInlineToolbar; }