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

open #

Open the modal window to insert an image.


or external call:

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

insert #

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 #

el Node Element Dom

Remove the specified image.

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

or external call:

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