UNPKG

jodit-pro

Version:

PRO Version of Jodit Editor

53 lines (52 loc) 1.58 kB
/*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ import type { CanUndef, IJodit } from "jodit/esm/types/index"; import { UIElement } from "jodit/esm/core/ui/index"; export declare class UITuner extends UIElement<IJodit> { private isShown; private toolbar; private popup; className(): string; protected currentBlock: HTMLElement; protected render(): string; /** * Shows the tuner, even if it is already shown - recalculates its position */ show(): void; /** * Hides the tuner button */ hide(): void; /** * Recalculates the position of the tuner button when scrolling the editor itself */ protected onEditorScroll(): void; /** * Calculates the position of the tuner in the editor so that it is always to the right of the block */ private calcPosition; /** * Handler: `afterExecTune.tune` */ protected onAfterExecTune(newBlock: CanUndef<HTMLElement>): void; /** * To prevent the editor from losing focus when clicking on the handler - we will prevent the click */ protected onClickPrevent(e: MouseEvent): void; /** * Handler: click on the tuner button */ protected onTargetClick(): void; /** * Opens the tuner toolbar */ private openToolbar; /** * Closes the tuner toolbar */ private closeToolbar; private toggleToolbar; }