Arguments:
Object
Object
Occurs whenever an embed is inserted into the editor using the embed.insert
API method.
Redactor('#entry', {
subscribe: {
'embed.insert': function(event) {
const data = event.get('data');
const instance = event.get('instance');
const $embed = instance.getBlock();
}
}
});
Arguments:
Object
Occurs whenever the embed properties change.
Redactor('#entry', {
subscribe: {
'embed.change': function(event) {
...
}
}
});
Occurs whenever an embed removed.
Redactor('#entry', {
subscribe: {
'embed.remove': function(event) {
...
}
}
});