You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eg; if i have new custom tag as 'testtag1'
the markup would be <testtag1>something</testtag1>
if i select now a different one, say h1, it should just replace.
like, <h1>something</h1>
Actual Behaviour
it keeps the newly added custom para format and wraps the new selection on top of it.
so the above markup , after selecting h1, would become, <h1><testtag1>something</testtag1></h1>
Reproduce Scenario (including but not limited to)
tested with the aem-guides-wknd code , on a new aem instance (cloud/ local) and can reproduce the same on actual cloud as well.
Steps to Reproduce
add a new tag here ui.apps/src/main/content/jcr_root/apps/wknd/components/text/_cq_editConfig.xml
around line 64 , after "pre" tag <default_subtitle jcr:primaryType="nt:unstructured" description="Subtitle" tag="subtitle"/>
next, go to ui.content/src/main/content/jcr_root/conf/wknd/settings/wcm/policies/.content.xml
around line 342, after "pre" tag <item10 jcr:primaryType="nt:unstructured" description="Subtitle" tag="subtitle"/>
next, add the new tag in the xss protection config here, ui.apps/src/main/content/jcr_root/apps/cq/xssprotection/config.xml
add <tag name="subtitle" action="validate"/> nearabout lines 845 , 850, where we are validating html tags.
Platform and Version
I've tested this on cloud version aem-sdk-2024.7.17258.20240726T172406Z-240700
Expected Behaviour
As per this https://experienceleague.adobe.com/en/docs/experience-manager-65/content/sites/administering/operations/configure-rich-text-editor-plug-ins#paraformats
if i add a new custom para format, it wraps the content in that tag. If I click on another format, it should remove the previous selection and add the new one.
eg; if i have new custom tag as 'testtag1'
the markup would be
<testtag1>something</testtag1>
if i select now a different one, say h1, it should just replace.
like,
<h1>something</h1>
Actual Behaviour
it keeps the newly added custom para format and wraps the new selection on top of it.
so the above markup , after selecting h1, would become,
<h1><testtag1>something</testtag1></h1>
Reproduce Scenario (including but not limited to)
tested with the aem-guides-wknd code , on a new aem instance (cloud/ local) and can reproduce the same on actual cloud as well.
Steps to Reproduce
add a new tag here ui.apps/src/main/content/jcr_root/apps/wknd/components/text/_cq_editConfig.xml
around line 64 , after "pre" tag
<default_subtitle jcr:primaryType="nt:unstructured" description="Subtitle" tag="subtitle"/>
next, go to ui.content/src/main/content/jcr_root/conf/wknd/settings/wcm/policies/.content.xml
around line 342, after "pre" tag
<item10 jcr:primaryType="nt:unstructured" description="Subtitle" tag="subtitle"/>
next, add the new tag in the xss protection config here, ui.apps/src/main/content/jcr_root/apps/cq/xssprotection/config.xml
add
<tag name="subtitle" action="validate"/>
nearabout lines 845 , 850, where we are validating html tags.Platform and Version
I've tested this on cloud version aem-sdk-2024.7.17258.20240726T172406Z-240700
Sample Code that illustrates the problem
code sample provided above
Logs taken while reproducing problem
No specific logs
Also: there is an experience league discussion link for the same
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/custom-paragraph-formats-in-rte-not-getting-removed-on-selecting/m-p/715416#M176680
The text was updated successfully, but these errors were encountered: