【发布时间】:2016-01-08 19:56:06
【问题描述】:
在我的作者中,我正在编辑一个文本组件并添加以下 html:
<li><span><a href="#" class="tt" data-toggle="popover" data-html="true" data-placement="top" data-content="Test text" role="button">test text</a></span></li>
但是,当我切换到预览模式时,呈现的 html 是:
<li><span><a class="tt" href="#">Test text</a></span></li>
看起来 AEM 正在剥离一些属性。任何想法为什么?
更多信息 经过更多阅读,我想我将其缩小到将属性添加到/libs/cq/xssprotection/config.xml。但是,当我添加以下内容时,页面会停止加载:
<tag name="div" action="validate">
<attribute name="align"/>
<attribute name="data-toggle">
<regexp-list>
<regexp name="data-toggle"/>
</regexp-list>
</attribute>
<attribute name="data-html">
<regexp-list>
<regexp name="data-html"/>
</regexp-list>
</attribute>
<attribute name="data-placement">
<regexp-list>
<regexp name="data-placement"/>
</regexp-list>
</attribute>
<attribute name="data-content">
<regexp-list>
<regexp name="data-content"/>
</regexp-list>
</attribute>
</tag>
我的语法不正确吗?
【问题讨论】:
标签: content-management-system adobe aem