Embed

insert#

This method creates an embed.


const data =
    content: '',
    caption: 'My embed',
    responsive: true
};
const embedInstance = app.embed.insert(data);

update#

This method updates the properties of the selected embed.


const data =
    content: 'https://youtu.be/link-to-the-video'
};
const embedInstance = app.embed.update(data);

get#

This method returns the instance of the selected embed.


const embedInstance = app.embed.get();

Get the properties of the selected embed


const embedInstance = app.embed.get();
if (embedInstance) {
    console.log(embedInstance.getData());
}

remove#

This method removes the selected embed.


app.embed.remove();