div.DTE_Field_Info onClick

div.DTE_Field_Info onClick

martin@mp-networks.netmartin@mp-networks.net Posts: 5Questions: 2Answers: 0

Hi,
I try to handle a onClick Event on an div.DTE_Field_Info Element in Editor...but it doesn't work...
Can you help me?

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    How are you attaching the event listener? You might want to try using the field().node() method to get the node for the element:

    $( 'div.DTE_Field_Info', editor.field('myField').node() ).on( 'click', function (e) {
      ...
    } );
    

    Allan

This discussion has been closed.