У меня установлено значение по умолчанию для RTE, поданного в AEM. Это значение отображается правильно при первом открытии диалогового окна, однако при его сохранении и повторном открытии ссылка href была удалена из тега A. (Это внешняя ссылка)
Это работает правильно, если этот href затем повторно добавляется с помощью кнопки ссылки RTE, но, естественно, я хочу, чтобы это работало правильно с первого раза.
Я новичок в AEM, и в настоящее время у меня есть следующее (примечание: для этого примера я изменил URL-адрес и скопировал его в тестовые версии):
<branchResultsCopy
jcr:primaryType="cq:Widget"
externalStyleSheets="[/etc/designs/rtg/clientlibs/author/style/source/rte.css]"
fieldLabel="Branch results copy"
name="./branchresultscopy"
defaultValue="<p>If you'd like information about blah blah blah, visit our <a target='_blank' link-checker='skip' href='https://www.testurl.com'>Link text</a> page.</p>"
xtype="richtext">
<htmlRules
jcr:primaryType="nt:unstructured">
<links
jcr:primaryType="nt:unstructured"
protocols="[http://,https://]"/>
</htmlRules>
<rtePlugins
jcr:primaryType="nt:unstructured">
<edit
jcr:primaryType="nt:unstructured">
<htmlPasteRules
jcr:primaryType="nt:unstructured">
<allowBasics
jcr:primaryType="nt:unstructured"
anchor="{Boolean}true"
bold="{Boolean}true"
/>
</htmlPasteRules>
</edit>
<format
jcr:primaryType="nt:unstructured"
features="[bold,italic]"/>
<lists
jcr:primaryType="nt:unstructured"
features="[ordered,unordered]"/>
<links
jcr:primaryType="nt:unstructured"
features="*"/>
</rtePlugins>
</branchResultsCopy>