jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
35 lines (34 loc) • 1.39 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
*/
/**
* @module plugins/inline-popup
*/
import type { IControlType, IDictionary, IJodit } from "../../../types/index";
declare module 'jodit/config' {
interface Config {
/**
* Element-specific popup toolbars. Keys are tag names (e.g. `img`, `a`, `cells`)
* and values are button lists or factory functions that return them.
*/
popup: IDictionary<Array<IControlType | string> | ((editor: IJodit, target: HTMLElement | undefined, close: () => void) => Array<IControlType | string> | HTMLElement | string)>;
/**
* List of button names to exclude from the inline toolbar
*/
toolbarInlineDisabledButtons: string[];
/**
* Show an inline toolbar when the user clicks inside the editor area (e.g. near images, links)
*/
toolbarInline: boolean;
/**
* Show an inline toolbar when the user selects text
*/
toolbarInlineForSelection: boolean;
/**
* CSS selector or array of selectors for elements that should not trigger the inline toolbar
*/
toolbarInlineDisableFor: string | string[];
}
}