This issue only occurs in AEM SDK v2023.1.10675. I have confirmed that it does not occur in any 2022 release. This issue is confirmed on both cloud managed environments as well as with the quickstart JAR.
When using the Text Component, I am settings some text to be aligned in the center. When I view the raw HTML, I see this:
<h2 style="text-align: center;">Hello World</h2>
However, when saving this change the text does not get aligned to the center. When I re-open the RTE and check, it is simply this:
<h2>Hello World</h2>
Additionally, when viewing the published page, I see this markup for the text component:
<div data-cmp-data-layer="{"text-afd76d34d8":{"@type":"microsoftgamedev/components/text","repo:modifyDate":"2023-01-19T14:07:59Z","xdm:text":"<h2 style=\"text-align: center;\">Hello World</h2>\r\n"}}" id="text-afd76d34d8" class="cmp-text">
<h2 style="">Hello World</h2>
</div>
Just based on what I see in data-cmp-data-layer, it appears to be persisted correctly. I can also see it persisted correctly in the JCR...
Question:
Additional Observations:
Solved! Go to Solution.
Views
Replies
Total Likes
This is a known issue with AEM's latest release and it's something we can replicate on AEM SDK as well. Please raise a request with Adobe Support and ask them to roll back to the previous stable version which is 2022.11.9850.20221116T162329Z. I have faced the same issue and we were able to resolve it, by roll back.
Thanks,
Asutosh
Hey, I observed this issue earlier, back then the difference was due to core-components version on the POM file. Can you check the core-components version on the POM file?
I just upgraded to 2.21.2 and the issue still occurs locally with the cloud quickstart jar.
yeah, it appears on local because of the difference in the SDK version to your higher environments, as @Asutosh_Jena_ mentioned seems like this is a known issue.
I would suggest making use of span tags with inline styling to align the content and check or make use of CSS.
Thanks,
Sravan
This is a known issue with AEM's latest release and it's something we can replicate on AEM SDK as well. Please raise a request with Adobe Support and ask them to roll back to the previous stable version which is 2022.11.9850.20221116T162329Z. I have faced the same issue and we were able to resolve it, by roll back.
Thanks,
Asutosh