Hi,cq:dialog will be used to show the dialog and cq:editConfig will be
used to display the component on left rail and dragging to parsys.
Create a component without cq:dialog if edit option is not required.
Option 2: If you just have cq:dialog without any node under it, click of
edit wont open the dialog.Hope this helps