Arguments:
Object
Occurs whenever a block selected.
Redactor('#entry', {
subscribe: {
'block.set': function(event) {
let instance = event.get('instance');
}
}
});
Occurs whenever a block unselected.
Redactor('#entry', {
subscribe: {
'block.unset': function() {
...
}
}
});
Arguments:
Object
Occurs whenever a block changed. At the moment works only when the embed or code content is changed.
Redactor('#entry', {
subscribe: {
'block.change': function(event) {
...
}
}
});
Arguments:
String
Occurs whenever a block removed.
Redactor('#entry', {
subscribe: {
'block.remove': function(event) {
...
}
}
});
Arguments:
Object
Occurs whenever a block duplicated.
Redactor('#entry', {
subscribe: {
'block.duplicate': function(event) {
...
}
}
});