Hi,I have tried what you said and I'm able to get the alert.I tried
below -I have created cq:editConfig and under that I have created
cq:listeners and added property afterinsert. To this I have
addedfunction(){alert("Hi");}I'm getting the alert.Thanks,AryA.