Take a look at our new Article and Redactor X editors.

Documentation

Modal Element

getHeader #

Returns: Dom

Get the Dom object of modal header element.

onmodal: {
        modalname: {
            save: function($modal, $form)
            {
                 var $header = $modal.getHeader();
            }
        }
}

getBody #

Returns: Dom

Get the Dom object of modal body element.

onmodal: {
        modalname: {
            save: function($modal, $form)
            {
                 var $body = $modal.getBody();
            }
        }
}

getFooter #

Returns: Dom

Get the Dom object of modal footer element.

onmodal: {
        modalname: {
            save: function($modal, $form)
            {
                 var $footer = $modal.getFooter();
            }
        }
}

setTitle #

Arguments
title String

Set the modal title.

onmodal: {
        modalname: {
            open: function($modal, $form)
            {
                 $modal.setTitle('My title');
            }
        }
}