options Object

Build and open the modal window with the following options object:

var options = {
    name: 'modalname',
    title: 'modal title',
    width: '800px', // optional, 600px by default
    height: '400px', // optional
    handle: 'save',  // optional, command which will be fired on enter pressed
    commands: // optional object
        save: { title: 'Save' },
        cancel: { title: 'Cancel' }

Call method:'', options);

or external call:

$R('#content', '', options);


Close the Redactor modal window.'module.modal.close');

or external call:

$R('#content', 'module.modal.close');