jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
44 lines (43 loc) • 1.69 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/mobile
*/
import type { ButtonsOption } from "../../types/index";
declare module 'jodit/config' {
interface Config {
/**
* Mobile timeout for CLICK emulation
*/
mobileTapTimeout: number;
/**
* After resizing, the set of buttons will change to accommodate different sizes.
*/
toolbarAdaptive: boolean;
/**
* The list of buttons that appear in the editor's toolbar for medium-sized spaces (≥ options.sizeMD).
*
* The set is constrained to `buttons`: resizing may only drop buttons on
* smaller widths, never surface a button that is not in `buttons`. So if
* you customise only `buttons` and leave this at its default, a narrow
* editor still shows just your `buttons`. Set this explicitly (as a subset
* of `buttons`) to get a different medium-width set.
*/
buttonsMD: ButtonsOption;
/**
* The list of buttons that appear in the editor's toolbar for small-sized spaces (≥ options.sizeSM).
*
* Constrained to `buttons` — see {@link buttonsMD}.
*/
buttonsSM: ButtonsOption;
/**
* The list of buttons that appear in the editor's toolbar for extra-small spaces (less than options.sizeSM).
*
* Constrained to `buttons` — see {@link buttonsMD}.
*/
buttonsXS: ButtonsOption;
}
}