Overriding default inline editing functionality | Community
Skip to main content
David_Woollard
Level 2
October 16, 2015
Solved

Overriding default inline editing functionality

  • October 16, 2015
  • 1 reply
  • 841 views

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

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 Sham_HC

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()

1 reply

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

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()