Issues
Images compatibility with AEM 6.2
Fixed
Description
Attachments
1
Gliffy Diagrams
Details
Details
Created January 3, 2017 at 12:03 PM
Updated January 4, 2017 at 10:28 AM
Resolved January 4, 2017 at 10:28 AM
Activity
Show:
Stefan SeifertJanuary 4, 2017 at 10:28 AM
thanks! - it's merged
Dinh Bao DangJanuary 3, 2017 at 12:31 PM
I created a pull request: https://github.com/wcm-io/wcm-io-samples/pull/1
Tested on AEM 6.2 and AEM 6.1.
Dinh Bao DangJanuary 3, 2017 at 12:05 PM
I am about to prepare a brach for a pull request.
Hello,
I tried to use the samples with AEM 6.2. There is a problems with images. Something changed in AEM 6.2 so the way of rendering image markup is broken.
Problem + Context
See this image:
The image tag is rendered as text instead of rendering it as an html element.
I know that the samples readme states support for AEM 6.0 SP1 and AEM 6.1. But I think it would be a good idea to have the samples working also on AEM 6.2
My setup is:
samples code at commit: https://github.com/wcm-io/wcm-io-samples/commit/903c1b891455a2e141d160c0484e8105ea5f1e2e
AEM 6.2.0 (fresh instance)
When I install the samples on AEM 6.1 I don't have this problem.
Solving
Images are rendered by
<img data-sly-unwrap data-sly-text="${media.markup @ context='html'}"/>
The
context
is not respected. Even when I change it tocontext='unsafe'
it does not work. My solution is not to usedata-sly-text
and replacing said code line by:${media.markup @ context='html'}
Further informations
The sightly/htl spec states:
<p data-sly-text="${'<strong>Bold and Proud</strong>' @ context='html'}"></p> <!--/* outputs: */--> <p><strong>Bold and Proud</strong></p>
This is also not working.