You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Going through the available events, I'm curious as to why there is no "component:remove" action?
I've taken the approach of triggering the action by modifying the tlb-delete action. I would assume there's a better way, I'm just not sure what that would be quite yet.
defaultCommands['tlb-delete'] = {
run: function run(ed) {
var sel = ed.getSelected();
if (!sel || !sel.get('removable')) {
console.warn('The element is not removable');
return;
}
ed.select(null);
sel.destroy();
em && em.trigger('component:remove', null);
}
};
The text was updated successfully, but these errors were encountered:
Going through the available events, I'm curious as to why there is no "component:remove" action?
I've taken the approach of triggering the action by modifying the
tlb-delete
action. I would assume there's a better way, I'm just not sure what that would be quite yet.The text was updated successfully, but these errors were encountered: