jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
20 lines (19 loc) • 674 B
TypeScript
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* @module helpers/utils
*/
import type { IJodit, Nullable } from "../../../types/index";
/**
* Generates a copy of an HTML document, resizes images, executes JS
*
* @event beforePreviewBox(string | undefined, 'pt' | 'px' | '')
* @event afterPreviewBox(HTMLElement)
*/
export declare function previewBox(editor: IJodit, defaultValue?: string, points?: 'pt' | 'px' | '', container?: Nullable<HTMLElement>): [
HTMLElement,
() => void
];