Apart from the link shared by @sachin_arora_ , below is some additional stuff :
You can define which HTML selector the text editor starts by configuring the following properties:
editElementQuery- Defined oncq:InplaceEditingConfig, this property is used to specify a selector of the HTML element on which the inline-editing for the Text Component will be started. If not specified, the inline-editing is directly started on the Text Component HTML.
textPropertyName- Defined oncq:InplaceEditingConfig, this property is used to specify the name of the property that will be saved on the content node where the HTML value of the text component will be persisted after inline-editing.