• Show alert dialog. Work without Jodit object

    Example

    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();
    });

    Parameters

    • this: unknown
    • msg: string | HTMLElement
    • Optional title: string | (() => false | void)
    • Optional callback: string | ((dialog: IDialog) => false | void)
    • className: string = 'jodit-dialog_alert'

    Returns IDialog

Jodit PRO

If you like Jodit - try Jodit PRO