aem-core-wcm-components icon indicating copy to clipboard operation
aem-core-wcm-components copied to clipboard

[Text] Wrapping div cmp-text disappears when using inplace editing

Open royteeuwen opened this issue 1 year ago • 2 comments

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

royteeuwen avatar Jul 10 '23 08:07 royteeuwen

Followed up in SITES-14663

royteeuwen avatar Jul 12 '23 13:07 royteeuwen

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

nhirrle avatar Aug 21 '23 14:08 nhirrle