diff --git a/lib/features/context-pad/ContextPadProvider.js b/lib/features/context-pad/ContextPadProvider.js index a70d0777..2fcb8eca 100644 --- a/lib/features/context-pad/ContextPadProvider.js +++ b/lib/features/context-pad/ContextPadProvider.js @@ -95,24 +95,19 @@ ContextPadProvider.prototype.getContextPadEntries = function(element) { action: function() { append(element, 'bpmn:TextAnnotation'); } + }, + 'action.delete': { + imageUrl: 'data:image/png;base64,' + images.TRASH, + action: function(e) { + modeling.removeShape(element); + } } }); } - /* - _.extend(actions, { - 'action.delete': { - imageUrl: 'data:image/png;base64,' + images.TRASH, - action: function(e) { - console.log('action.delete', e); - } - } - }); - */ - return actions; }; -module.exports = ContextPadProvider; \ No newline at end of file +module.exports = ContextPadProvider;