Closed angelinekwan closed 6 years ago
@angelinekwan In order to get the drag'n drop to work you have to add the svg mime type to the component mapping of the content policy.
Please have also a look to our We.Retail example code at [1]
Can you please confirm that this fixes your issue? Thanks! [1] https://github.com/Adobe-Marketing-Cloud/aem-sample-we-retail/blob/master/ui.content/src/main/content/jcr_root/conf/we-retail/settings/wcm/policies/.content.xml#L24
@bpauli Your suggestion will enable dragging image directly to the Layout Container. The issue I reported is related with the version 2.1.0 updates for the Image Component. On the 2.1.0 update, image/svg+xml was added to the mimeTypes but that doesn't support if the SVG existed in the DAM. Only works if upload via the Property Dialog. Thanks
@angelinekwan Thank you! Now I understand the problem :-).
This is a known issue which will be fixed with the next servicepack for AEM 6.4 (SP2). The release of this servicepack is scheduled for end of September.
(NPR-24467)
Please note that the issue should be fixed in: CQ 6.4 + SP1 + FP-24267 + Core Components 2.1.0
Bug Report
Current Behavior If the SVG existed in the DAM, unable to drag and drop to the Image component or drag via the properties dialog. Nothing happens.
Expected behavior/code User should be able to drag existing SVG in the DAM to the component
Environment
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
)Possible Solution Add mimeType: image/svg