aem-core-wcm-components
aem-core-wcm-components copied to clipboard
[Text] Wrapping div cmp-text disappears when using inplace editing
Bug Report
Current Behavior The Text v2 component has a wrapping div.cmp-text in the text.html HTL template, when using the inplace editing features, it removes this wrapping div, making all CSS rules not match anymore. The recommended approach by Adobe is styling on the cmp-text CSS class, so we have currently no alternative to style the text component
Expected behavior/code The wrapping div.cmp-text should stay
Environment
- AEM version: Cloud SDK 2023.7.12549.20230704T084019Z
- Core Components version 2.23.0
Followed up in SITES-14663
can be fixed with adding editElementQuery=".cmp-text" in https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wcm/components/text/v2/text/_cq_editConfig.xml#L9