Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

RTE appends .html to links in content fragment model

Avatar

Level 2

Whenever the rte field of content fragment is configured it appends.html to links.Since the resource type is dam/cfm/admin/components/authoring/contenteditor/multieditor , not sure where I should add the htmlrule node?
Also if there is any alternate please suggest

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@hello299 

 

The Content Fragment component is available to page authors. It allows them to reference, and deliver, the required content fragment in either HTML or JSON format.

https://experienceleague.adobe.com/docs/experience-manager-64/assets/fragments/content-fragments.htm...

 

I am not sure if there is any OOTB config to help you out. 

 

I suggest either you move it to a different location other than /content/dam or else need to look for a custom implementation 

View solution in original post

4 Replies

Avatar

Level 2

Hi Jagadeesh

 

But thats for text component I need for the content fragment rte field

Avatar

Correct answer by
Community Advisor

@hello299 

 

The Content Fragment component is available to page authors. It allows them to reference, and deliver, the required content fragment in either HTML or JSON format.

https://experienceleague.adobe.com/docs/experience-manager-64/assets/fragments/content-fragments.htm...

 

I am not sure if there is any OOTB config to help you out. 

 

I suggest either you move it to a different location other than /content/dam or else need to look for a custom implementation 

Avatar

Level 2

How can we add that htmlrules property in custom js
"htmlRules": {
"genericHtml": {
"converters": [
{
"type": "video",
"name": "video",
"detectors": [
{
"type": "element",
"tagName": "video"
}
],
"thumbnailMaxWidth": 240,
"keepEmptyContainers": true
}, {
"type": "imagethumb",
"name": "imagethumb",
"detectors": [
{
"type": "element",
"tagName": "img"
}
],
"thumbnailMaxWidth": 240,
"keepEmptyContainers": true
}