Link
link.add #
element | Dom | Dom element of the link. |
data | Object | Data of the link. |
Occurs whenever a link is formatted in the editable block.
Redactor('#entry', {
subscribe: {
'link.add': function(event) {
let $link = event.get('element');
}
}
});
link.change #
element | Dom | Dom element of the link. |
data | Object | Data of the link. |
Occurs whenever a link is edited.
Redactor('#entry', {
subscribe: {
'link.change': function(event) {
var $link = event.get('element');
}
}
});
link.remove #
data | Object | Data of the link. |
Occurs whenever a link removed (unlink).
Redactor('#entry', {
subscribe: {
'link.remove': function(event) {
...
}
}
});