Hi,
I have a component developed in AEM 6. one of the field has richtext as xtype. The issue I am facing is when I author this field with html data(using source edit), on the page some of the HTML element attributes are getting removed.
for example,
If I add below html code
<div data-hide="...">some content</div>
and when I veiw the source of finally rendered HTML page, data-hide property is missing!!
how to resolve this issue?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Radha Krishna,
Currently only supports the basic html tags and not custom one. Verify html serializer/processor /at libs/cq/ui/widgets/source/widgets/form/rte . This basically means that unsupported HTML that was entered will get stripped/removed.
As a workaround, i will suggest that you create a custom plain HTML component that is suitable for your use case and not use the Richtext. Another possibility is to create a new plugin to support such a use case.
Thanks,
Sham
Tweet: @adobe_sham
Views
Replies
Total Likes
Hi Radha Krishna,
Currently only supports the basic html tags and not custom one. Verify html serializer/processor /at libs/cq/ui/widgets/source/widgets/form/rte . This basically means that unsupported HTML that was entered will get stripped/removed.
As a workaround, i will suggest that you create a custom plain HTML component that is suitable for your use case and not use the Richtext. Another possibility is to create a new plugin to support such a use case.
Thanks,
Sham
Tweet: @adobe_sham
Views
Replies
Total Likes
Is the element hidden or gone - for example -- if you use JQuery for example to read the element:
var $dvObj = $('div.desc');
is a value returned?
Views
Replies
Total Likes
Views
Likes
Replies