jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
85 lines (84 loc) • 2.4 kB
TypeScript
/*!
* 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;
/**
* Show inline popup with some toolbar
*
* @param type - selection, img, a etc.
*/
private showPopup;
private previousTarget?;
/**
* Hide opened popup
*/
private hidePopup;
protected onOutsideClick(): void;
/**
* Can show popup for this type
*/
private canShowPopupForType;
/**
* For some elements do not show popup
*/
private isExcludedTarget;
/** @override **/
protected afterInit(jodit: IJodit): void;
/**
* The user pressed a button inside the selection toolbar — after the
* command fires `closeAllPopups`, the toolbar should be shown again
* while the selection is still there. See #1238
*/
private __reopenSelectionPopup;
private __onDocumentMouseDown;
private __onCloseAllPopups;
/**
* 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 onSelectionEnd;
/**
* Selection change handler
*/
private onSelectionChange;
/**
* 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;
}