Disable 'delete' in context menu of embedded component | Community
Skip to main content
November 3, 2015
Solved

Disable 'delete' in context menu of embedded component

  • November 3, 2015
  • 1 reply
  • 993 views

We have a component (conditionsContainer) that is only ever used by embedding it in other components.  We would like to disable the context menu for this conditionsContainer component, so that it cannot be removed.  

Currently, we prohibit deletion of the conditionsContainer component with the use of a beforedelete event listener that returns false.  For obvious UX reasons, however, we would like to remove the ability to click delete.  Using the edit bar (which can be customized without a delete button) is not an option.

How can this be achieved?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

See http://experience-aem.blogspot.ch/2014/01/aem-cq-disable-component-menu-delete.html. This talks about removing the delete option.

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
November 3, 2015