Problem with RTE supertype import | Community
Skip to main content
December 1, 2020
Question

Problem with RTE supertype import

  • December 1, 2020
  • 2 replies
  • 1016 views

I have a content xml file for RTE code which I want to use on other components. It works on some components but it didn't work on another components. I am wandering what could be the issue

 

Here is my RTE content xml code

 

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="nt:unstructured"> <rtePlugins jcr:primaryType="nt:unstructured"> <format jcr:primaryType="nt:unstructured" features="*"/> <justify jcr:primaryType="nt:unstructured" features="*"/> <lists jcr:primaryType="nt:unstructured" features="*"/> <paraformat jcr:primaryType="nt:unstructured" features="*"> <formats jcr:primaryType="cq:WidgetCollection"> <paragraph jcr:primaryType="nt:unstructured" description="Paragraph" tag="p"/> <h1 jcr:primaryType="cq:WidgetCollection" description="H1" tag="h1"/> <h2 jcr:primaryType="nt:unstructured" description="H2" tag="h2"/> <h3 jcr:primaryType="nt:unstructured" description="H3" tag="h3"/> <h4 jcr:primaryType="nt:unstructured" description="H4" tag="h4"/> <h5 jcr:primaryType="nt:unstructured" description="H5" tag="h5"/> <h6 jcr:primaryType="nt:unstructured" description="H6" tag="h6"/> <br jcr:primaryType="nt:unstructured" description="br" tag="br"/> </formats> </paraformat> <links jcr:primaryType="nt:unstructured" features="*"/> <findreplace jcr:primaryType="nt:unstructured" features="*"/> <subsuperscript jcr:primaryType="nt:unstructured" features="*"/> <spellcheck jcr:primaryType="nt:unstructured" features="*"/> <misctools jcr:primaryType="nt:unstructured" features="*"> <specialCharsConfig jcr:primaryType="nt:unstructured"> <chars jcr:primaryType="nt:unstructured"> <copyright jcr:primaryType="nt:unstructured" entity="&amp;#169;"/> <trademark jcr:primaryType="nt:unstructured" entity="&amp;#8482;"/> <registered jcr:primaryType="nt:unstructured" entity="&amp;#174;"/> <emDash jcr:primaryType="nt:unstructured" entity="&amp;#8212;"/> <pound jcr:primaryType="nt:unstructured" entity="&amp;#163;"/> <nbsp jcr:primaryType="nt:unstructured" entity="&amp;#160;"/> </chars> </specialCharsConfig> </misctools> <table jcr:primaryType="nt:unstructured" features="*"/> </rtePlugins> <uiSettings jcr:primaryType="nt:unstructured"> <cui jcr:primaryType="nt:unstructured"> <inline jcr:primaryType="nt:unstructured" toolbar="[format#bold,format#italic,format#underline,#justify,#lists,subsuperscript#subscript,subsuperscript#superscript,links#modifylink,links#unlink,links#anchor,findreplace#find,findreplace#replace,spellcheck#checktext,misctools#specialchars,misctools#sourceedit,#styles,#paraformat,table#table]"> <popovers jcr:primaryType="nt:unstructured"> <justify jcr:primaryType="nt:unstructured" items="[justify#justifyleft,justify#justifycenter,justify#justifyright]" ref="justify"/> <lists jcr:primaryType="nt:unstructured" items="[lists#unordered,lists#ordered,lists#outdent,lists#indent]" ref="lists"/> <paraformat jcr:primaryType="nt:unstructured" items="paraformat:getFormats:paraformat-pulldown" ref="paraformat"/> <styles jcr:primaryType="nt:unstructured" items="styles:getStyles:styles-pulldown" ref="styles"/> </popovers> </inline> </cui> </uiSettings> <htmlRules jcr:primaryType="nt:unstructured"> <docType jcr:primaryType="nt:unstructured"> <typeConfig jcr:primaryType="nt:unstructured" strong="strong" b="strong" i="em" useSemanticMarkup="{Boolean}true"/> </docType> </htmlRules> </jcr:root>

 




Here is code how I am consuming in components

 

<bodytext jcr:primaryType="nt:unstructured" sling:resourceType="cq/gui/components/authoring/dialog/richtext" fieldLabel="Body Text" name="./bodytext" useFixedInlineToolbar="{Boolean}true"> <rtePlugins jcr:primaryType="nt:unstructured" sling:resourceSuperType="/apps/am/components/component-elements/standardRTE/rtePlugins"/> <uiSettings jcr:primaryType="nt:unstructured" sling:resourceSuperType="/apps/am/components/component-elements/standardRTE/uiSettings"/> <htmlRules jcr:primaryType="nt:unstructured" sling:resourceSuperType="/apps/am/components/component-elements/standardRTE/htmlRules"/> </bodytext>

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Mayank_Gandhi
Employee
December 8, 2020

@kautuk_sahni Can  you please move this to core.

Mayank_Gandhi
Employee
December 2, 2020

@17112634  is this something specific to forms component and rte?

December 7, 2020
Yes we are using RTE editor (textarea) for rich text support.