/*! * 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 { IJodit, Nullable } from "jodit/esm/types/index"; import "./config"; import { Plugin } from "jodit/esm/core/plugin/index"; /** * Inserts LaTeX / MathML formulas rendered by MathJax as standalone SVG, * either as a block or inline, and lets the user edit or remove them. */ export declare class MathPlugin extends Plugin { static requires: string[]; buttons: Plugin['buttons']; private __dialog; private __editor; private __saveButton; private __popup; private __toolbar; private __target; protected afterInit(jodit: IJodit): void; protected beforeDestruct(): void; /** * Opens the editor dialog for a new formula or for an existing one. */ openEditor(target?: Nullable, display?: unknown): void; /** * Removes the formula that owns the given node. */ removeMath(target?: Nullable): void; private __submit; private __save; /** * A block formula must not stay inside a paragraph, an inline one is * inserted at the caret. */ private __insert; private __getDialog; protected onClick(e: MouseEvent): void; protected onDblClick(e: MouseEvent): void; protected onOutsideClick(): void; /** * Shows the contextual popup (edit / delete) at the formula. */ openPopup(element: HTMLElement): void; closePopup(): void; /** * An inline formula that carries data but no SVG is an empty ``, * which the core cleaner drops before MathJax can fill it. The source is * written into such elements as a placeholder; the render replaces it. */ protected onBeforeSetValue(value: unknown): string | void; /** * Decorates formulas that arrived with the value and renders the ones * that carry data but no SVG yet. */ protected onChange(): void; private __decorateAll; /** * The core resizer sets a pixel box on the figure; the width goes into * the data and the explicit height is dropped so the SVG keeps its ratio. */ private __syncResized; private __renderMissing; }