/** * @module plugins/size */ import { Config } from 'jodit/config'; declare module 'jodit/config' { interface Config { saveHeightInStorage: boolean; minWidth: number | string; minHeight: number | string; maxWidth: number | string; maxHeight: number | string; } } Config.prototype.minWidth = 200; Config.prototype.maxWidth = '100%'; /** * Editor's min-height * * @example * ```javascript * Jodit.make('.editor', { * minHeight: '30%' //min-height: 30% * }) * ``` * @example * ```javascript * Jodit.make('.editor', { * minHeight: 200 //min-height: 200px * }) * ``` */ Config.prototype.minHeight = 200; Config.prototype.maxHeight = 'auto'; /** * if set true and height !== auto then after reload editor will be have latest height */ Config.prototype.saveHeightInStorage = false;