我正在使用AEM 6.1 SP2,我试图在定位标记的href中启用'tel'属性以使点击调用功能性工作。我已经添加了'htmlRules'节点 ,并将htmlRules节点下的节点与'protocols'属性链接为[http://,https://,ftp://,tel :, mailto :, file://]'tel'属性在AEM 6.1的经典UI中富文本编辑器中的锚标记的href中不起作用
的“validateHref”在rte.js功能无法读取“协议”属性,并验证了“电话”属性是有效的,但不知道为什么“电话”属性不在作者对话框中单击“确定”时,坚持标记。
这是锚标记 -
,这是它是如何呈现的页面上标记 -
这是 'htmlRules' 节点XML -
jcr:primaryType="nt:unstructured"
tagsToRemove="[\0]"/>
jcr:primaryType="nt:unstructured"
tagsToRemove="[\0]"/>
jcr:primaryType="nt:unstructured"
tagsToRemove="[\0]"/>
jcr:primaryType="nt:unstructured"
protocols="[http://,https://,ftp://,tel:,mailto:,file://]"/>
+0
感谢您的评论,我已经在linkchecker配置中添加了'tel'属性。我还在锚标记中添加了x-cq-linkchecker =“skip”,但是在提交对话框后它也被剥离了标记。您能否让我知道由于哪个tel属性没有被持久化而可能出现问题? –