Problem with RTE supertype import

Avatar

Avatar
Level 1
jaswinderl88470
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
jaswinderl88470
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
jaswinderl88470
Level 1

01-12-2020

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>

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

08-12-2020

@Kautuksahni Can  you please move this to core.

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

327 likes

Total Posts

1,150 posts

Correct reply

185 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

02-12-2020

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