/*! * 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/resizer */ import type { HTMLTagNames } from "../../types/index"; declare module 'jodit/config' { interface Config { /** * Set of HTML tag names whose elements can be resized by the user via drag handles (e.g. images, iframes, tables) */ allowResizeTags: Set; resizer: { /** * Show size */ showSize: boolean; hideSizeTimeout: number; /** * Save width and height proportions when resizing * ```js * Jodit.make('#editor', { * allowResizeTags: ['img', 'iframe', 'table', 'jodit'], * resizer: { * useAspectRatio: false, // don't save, * useAspectRatio: ['img'], // save only for images (default value) * useAspectRatio: true // save for all * } * }); * ``` */ useAspectRatio: boolean | Set; /** * When resizing images, change not the styles but the width and height attributes */ forImageChangeAttributes: boolean; /** * The minimum width for the editable element */ min_width: number; /** * The minimum height for the item being edited */ min_height: number; }; } }