open

Open the modal window to insert an image.

this.app.api('module.image.open');

or external call:

$R('#content', 'module.image.open');

insert

Arguments
data Object

Insert an image or images to Redactor with following data object:

var data = {
    myimagekey: {
        id: 'some an image id',
        url: 'image url'
    }
};

Call method:

this.app.api('module.image.insert',  data);

or external call:

$R('#content', 'module.image.insert', data);

remove

Arguments
el Node Element Dom

Remove the specified image.

this.app.api('module.image.remove', el);

or external call:

$R('#content', 'module.image.remove', el);