Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Imran Khan
Imran KhanAccepted solution
Community Advisor
February 22, 2024

@jniza Overlay below file to add delete button

/libs/cq/gui/components/authoring/editors/clientlibs/core/js/ui/ui.ContentTree.js

 

As it is a custom change project specific change we have been looking for. Please change below lines and try:

line number 178 to add delete button

Change line number 322 to add delete event

2 replies

BrianKasingli
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
February 22, 2024

There are several ways to achieve this

- Create custom clientlib to target the editor

- Overlay the ContentTree.js as you mentioned.

Translate
Imran Khan
Community Advisor
Imran KhanCommunity AdvisorAccepted solution
Community Advisor
February 22, 2024

@jniza Overlay below file to add delete button

/libs/cq/gui/components/authoring/editors/clientlibs/core/js/ui/ui.ContentTree.js

 

As it is a custom change project specific change we have been looking for. Please change below lines and try:

line number 178 to add delete button

Change line number 322 to add delete event

Translate