Documentation
Link
link.add #
element | Dom | Dom element of the added link. |
url | String | Url of the added link. |
text | String | Text of the added link. |
Occurs whenever a link is formatted in the editable block.
ArticleEditor('#entry', {
css: '/your-article-dist-path/',
subscribe: {
'link.add': function(event) {
var $link = event.get('element');
}
}
});
link.change #
element | Dom | Dom element of the added link. |
url | String | Url of the added link. |
text | String | Text of the added link. |
Occurs whenever a link is editted.
ArticleEditor('#entry', {
css: '/your-article-dist-path/',
subscribe: {
'link.change': function(event) {
var $link = event.get('element');
}
}
});
link.remove #
url | String | Url of the added link. |
text | String | Text of the added link. |
Occurs whenever a link removed (unlink).
ArticleEditor('#entry', {
css: '/your-article-dist-path/',
subscribe: {
'link.remove': function(event) {
...
}
}
});