Highlighted

Using RTE twice in the component AEM 6.3

maheshk6615

08-05-2018

we are using RTE in one of our components. where we are using RTE twice in the same component.(using Touch UI)

If I type-in something in one RTE field in the dialog and close it, when I reopen the dialog the same text is seen in other RTE field by default. But the value appeared in second RTE is not stored on the page node.  please see the image below.

1483463_pastedImage_2.png

This is the dialog we are using :

<?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"

    jcr:title="Collapsible Text"

    sling:resourceType="cq/gui/components/authoring/dialog">

    <content

        jcr:primaryType="nt:unstructured"

        sling:resourceType="granite/ui/components/coral/foundation/container">

        <items jcr:primaryType="nt:unstructured">

            <tabs

                jcr:primaryType="nt:unstructured"

                jcr:title="Collapsible Text"

                sling:resourceType="granite/ui/components/coral/foundation/tabs"

                maximized="{Boolean}true">

                <items jcr:primaryType="nt:unstructured">

                    <collapsibletext

                        jcr:primaryType="nt:unstructured"

                        jcr:title="Collapsible Text"

                        sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns"

                        margin="{Boolean}true">

                        <items jcr:primaryType="nt:unstructured">

                            <column

                                jcr:primaryType="nt:unstructured"

                                sling:resourceType="granite/ui/components/coral/foundation/container">

                                <items jcr:primaryType="nt:unstructured">

                                    <title

                                        jcr:primaryType="nt:unstructured"

                                        sling:resourceType="granite/ui/components/coral/foundation/form/textfield"

                                        fieldDescription="Enter Header"

                                        fieldLabel="Enter Header"

                                        name="./header"/>

                                    <mobiledefaultopen

                                        jcr:primaryType="nt:unstructured"

                                        sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"

                                        name="./mobiledefaultopen"

                                        text="Open collapsed section by default?"

                                        uncheckedValue="false"

                                        value="{Boolean}true"/>

                                    <text

                                        jcr:primaryType="nt:unstructured"

                                        sling:resourceType="cq/gui/components/authoring/dialog/richtext"

                                        fieldLabel="Text"

                                        name="./text"

                                        useFixedInlineToolbar="{Boolean}true">

                                        <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="*"/>

                                            <links

                                                jcr:primaryType="nt:unstructured"

                                                features="*"/>

                                            <image

                                                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>

                                            <styles

                                                jcr:primaryType="nt:unstructured"

                                                features="*">

                                                <styles jcr:primaryType="nt:unstructured">

                                                    <plainSpan

                                                        jcr:primaryType="nt:unstructured"

                                                        cssName="defaultSpan"

                                                        text="Default (add span tag)"/>

                                                    <lead

                                                        jcr:primaryType="nt:unstructured"

                                                        cssName="lead"

                                                        text="Lead"/>

                                                </styles>

                                            </styles>

                                            <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,image#imageProps,#justify,#lists,subsuperscript#subscript,subsuperscript#superscript,links#modifylink,links#unlink,links#anchor,#image,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>

                                    </text>

                                    <description

                                        jcr:primaryType="nt:unstructured"

                                        sling:resourceType="cq/gui/components/authoring/dialog/richtext"

                                        fieldLabel="Description"

                                        name="./description"

                                        useFixedInlineToolbar="{Boolean}true">

                                        <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="*"/>

                                            <links

                                                jcr:primaryType="nt:unstructured"

                                                features="*"/>

                                            <image

                                                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>

                                            <styles

                                                jcr:primaryType="nt:unstructured"

                                                features="*">

                                                <styles jcr:primaryType="nt:unstructured">

                                                    <plainSpan

                                                        jcr:primaryType="nt:unstructured"

                                                        cssName="defaultSpan"

                                                        text="Default (add span tag)"/>

                                                    <lead

                                                        jcr:primaryType="nt:unstructured"

                                                        cssName="lead"

                                                        text="Lead"/>

                                                </styles>

                                            </styles>

                                            <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,#image,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>

                                    </description>

                                </items>

                            </column>

                        </items>

                    </collapsibletext>

                </items>

            </tabs>

        </items>

    </content>

</jcr:root>

Thanks in Advance!

Mahesh

Replies