UNPKG

jodit

Version:

Jodit is an awesome and useful wysiwyg editor with filebrowser

25 lines (24 loc) 864 B
/*! * 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 modules/dialog */ import type { IDialog } from "../../types/index"; /** * Show `alert` dialog. Work without Jodit object * @example * ```javascript * Jodit.Alert("File was uploaded"); * Jodit.Alert("File was uploaded", "Message"); * Jodit.Alert("File was uploaded", function() { * $('form').hide(); * }); * Jodit.Alert("File wasn't uploaded", "Error", function() { * $('form').hide(); * }); * ``` */ export declare function Alert(this: IDialog | unknown, msg: string | HTMLElement, title?: string | (() => void | false), callback?: string | ((dialog: IDialog) => void | false), className?: string): IDialog;