Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Overriding default inline editing functionality

Avatar

Level 2

Hello!

I am trying to override the default fast-double-click behaviour for one of my components. I am currently using the following code:

jQuery(document).on('cq-overlay-fast-dblclick', function(ev){ console.log('double clicked detected', ev.inspectable.type); if ( ev.inspectable.type == 'my/component/name' ) { // Do custom behaviour } });

This is great, however it is not clear how to prevent the default behaviour as it always displays the edit dialog?

Thanks for your help!

Dave

1 Accepted Solution

Avatar

Correct answer by
Level 10

What is your exact use case? Under cq:editConfig/cq:inplaceEditing you can configure as per your need what you are trying to achieve by overlaying at client side? also for touchui need to use layer.  in any case try with stopping the event propogation.   ev.stopPropagation()

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

What is your exact use case? Under cq:editConfig/cq:inplaceEditing you can configure as per your need what you are trying to achieve by overlaying at client side? also for touchui need to use layer.  in any case try with stopping the event propogation.   ev.stopPropagation()