After update from CQ 5.5 to AEM 5.6.1 we are facing situation when richtext component is stripping <script /> tags entered via "HTML source" mode. What is the preferred way of configuring this behavior?
Solved! Go to Solution.
Overlay WhitespaceProcessor.js & HtmlSerializer.js
Overlay WhitespaceProcessor.js & HtmlSerializer.js
Here is a similar issue:
Views
Replies
Total Likes
Hi Sham,
There are two WhitespaceProcessor.js files in AEM 5.6.1:
It seems that first one is for Touch UI and second is for Classic UI and I have to overlay them both, correct? In that case how I can overlay /etc/clientlibs file? It's pretty straightforward how to overlay files under /libs, but what about /etc?
Views
Replies
Total Likes
I've seen that and it isn't the same. It was about one very specific element - ID attribute in HTML tags. I need to find a way how to configure Ext in AEM to avoid stripping off arbitrary tags, not just ID attributes.
Views
Replies
Total Likes
smacdonald2008 wrote...
Here is a similar issue:
https://forums.adobe.com/thread/1019650
It's not the same, I need to prevent stripping off HTML tags, not just ID attribute
Views
Replies
Total Likes
See the RTE Reference docs:
http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.form.RichText
See: stripHtmlTags. Set this to false. See if that helps.
Views
Replies
Total Likes
jura.khrapunov wrote...
Hi Sham,
There are two WhitespaceProcessor.js files in AEM 5.6.1:
/etc/clientlibs/granite/coralui/optional/rte/js/core/WhitespaceProcessor.js from rte.coralui clientlib
/libs/cq/ui/rte/core/WhitespaceProcessor.js from cq.rte
It seems that first one is for Touch UI and second is for Classic UI and I have to overlay them both, correct? In that case how I can overlay /etc/clientlibs file? It's pretty straightforward how to overlay files under /libs, but what about /etc?
You are right etc cannot be overlayed. However 5.6.1 coral has not complete ready so you can ignore & I tested only for classic ui.
Views
Replies
Total Likes
smacdonald2008 wrote...
See the RTE Reference docs:
http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.form.RichText
See: stripHtmlTags. Set this to false. See if that helps.
This one has no effect for the code typed in in the HTML source edit mode in richtext editor component. It only affects copy/pasted text and, according to the docs, already deprecated
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies