Expand my Community achievements bar.

SOLVED

Inplace editing in RTE?

Avatar

Level 3

How to enable inplace editing in RTE?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
5 Replies

Avatar

Community Advisor

Please refer how its done in Text Component : /apps/core/wcm/components/text , /apps/core/wcm/components/text/v2/text/cq:editConfig/cq:inplaceEditing

Also you can refer this blog : sgaemsolutions.com/2019/02/cqinplaceediting-in-cqeditconfig-node_7.html

 

Avatar

Community Advisor

 

hi @Manasi29 

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 on cq: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 on cq: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.

Thanks,

Pallavi Shukla

 

Avatar

Correct answer by
Community Advisor