I was trying to add a field within JCR Content while dragging the component,
What are the possible ways to add Data in to JCR Content without submitting through Classic UI Dialog
As per our assumption data is added in to JCR content only when it is submitted through dialog.
Can someone please explain how to get this value in JCR ?
Use cq:template node for this.. Here is a blog that explains just that thing very precisely . Using the cq:template file | 6D Labs
I am not clear on your requirement. Why would dragging a component from the side rail to a page in author put data into the JCR. If you want to store data in the JCR, you can use an API like JCR API or Sling API.
Can you explain your use case little more in detail? what and where in JCR you want to add when you drag a component?