AEM 6.5 RichText inside multifield not retaining the authored values.

malaya_ranjand4

13-05-2020

Hi All,

Facing one issue in richtext under mutifield in AEM6.5 .

When we authored anything inside richtext that is under mutifield and saving the dialog.

malaya_ranjand4_0-1589357962523.png

Now after saving the dialog again if we open the dialog and we can see the value that we have given in richtext field is not present. Richtext box is blank.

 

malaya_ranjand4_1-1589358070782.png

As we can see from the above one, on the first hit we gave some inputs to richtext after saving, and again opening the dialog we cant see the value that we have entered.

Can anyone please help me to retain the value even after opening the dialog. (Richtext under multifield)

@kautuk_sahni @Arun_Patidar @Vish_dhaliwal @Andrew_Khoury @BrianKasingli 

 

AEM 6.5 multifield Richtext touch-ui Touchui dialog

Accepted Solutions (1)

Accepted Solutions (1)

Ankur_Khare

MVP

13-05-2020

Could you please add your dialog here .

As its working fine for me in AEM 6.5.

<?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="Promotions Blade" sling:resourceType="cq/gui/components/authoring/dialog"> <content jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container" class="richtextfullscreen"> <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/tabs" type="nav"/> <items jcr:primaryType="nt:unstructured"> <tab1 jcr:primaryType="nt:unstructured" jcr:title="Content" sling:resourceType="granite/ui/components/foundation/section"> <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/> <items jcr:primaryType="nt:unstructured"> <column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container"> <items jcr:primaryType="nt:unstructured"> <fieldset jcr:primaryType="nt:unstructured" jcr:title="" sling:resourceType="granite/ui/components/foundation/form/fieldset"> <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/> <items jcr:primaryType="nt:unstructured"> <promotionItems jcr:primaryType="nt:unstructured" jcr:title="Items" sling:resourceType="granite/ui/components/foundation/section"> <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns" margin="{Boolean}true"/> <items jcr:primaryType="nt:unstructured"> <column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container"> <items jcr:primaryType="nt:unstructured"> <itemmultifield jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/multifield" class="full-width" eaem-nested="" fieldLabel="Items"> <field jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/fieldset" name="./contentMulti"> <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns" method="absolute"/> <items jcr:primaryType="nt:unstructured"> <column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container" fieldLabel="Items"> <items jcr:primaryType="nt:unstructured"> <title jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/textfield" fieldDescription="Under 45 characters recommended" fieldLabel="Title" name="./title" required="false"/> <description jcr:primaryType="nt:unstructured" sling:resourceType="cq/gui/components/authoring/dialog/richtext" fieldDescription="Under 140 characters recommended" fieldLabel="Description" name="./description" useFixedInlineToolbar="{Boolean}true"> <rtePlugins jcr:primaryType="nt:unstructured" features="*"> <edit jcr:primaryType="nt:unstructured" features="[paste-wordhtml]" name="edit"> <htmlPasteRules jcr:primaryType="nt:unstructured"> <allowBasics jcr:primaryType="nt:unstructured" anchor="{Boolean}true" bold="{Boolean}true" image="{Boolean}true" italic="{Boolean}true" underline="{Boolean}true"/> </htmlPasteRules> </edit> <findreplace jcr:primaryType="nt:unstructured" features="*" name="findreplace"/> <format jcr:created="{Date}2011-05-25T18:49:56.487+05:30" jcr:createdBy="admin" jcr:primaryType="nt:unstructured" features="[bold,italic,underline]" name="format"/> <image jcr:primaryType="nt:unstructured" features="*" name="image"/> <justify jcr:primaryType="nt:unstructured" features="*" name="justify"/> <keys jcr:primaryType="nt:unstructured" name="keys" tabSize="4"/> <links jcr:primaryType="nt:unstructured" features="*" name="links"/> <lists jcr:primaryType="nt:unstructured" features="[ordered,unordered]" name="lists"/> <misctools jcr:primaryType="nt:unstructured" features="[specialchars]" name="misctools"> <specialCharsConfig jcr:primaryType="nt:unstructured"> <chars jcr:primaryType="nt:unstructured"> <copyright jcr:primaryType="nt:unstructured" entity="&amp;#169;"/> <half jcr:primaryType="nt:unstructured" entity="&amp;#189;"/> <registred jcr:primaryType="nt:unstructured" entity="&amp;#174;"/> <trademark jcr:primaryType="nt:unstructured" entity="&amp;#8482;"/> <carat jcr:primaryType="nt:unstructured" entity="&amp;#8250;"/> </chars> </specialCharsConfig> </misctools> <paraformat jcr:primaryType="nt:unstructured" features="*" name="paraformat"> <formats jcr:primaryType="cq:WidgetCollection"> <myheading jcr:primaryType="nt:unstructured" description="Header-Intel Clear" tag="h1"/> <myparagraph jcr:primaryType="nt:unstructured" description="Paragraph" tag="p"/> <myblockquote jcr:primaryType="nt:unstructured" description="Blockquote" tag="blockquote"/> </formats> </paraformat> <spellcheck jcr:primaryType="nt:unstructured" features="*" name="spellcheck"/> <subsuperscript jcr:primaryType="nt:unstructured" features="*" name="subsuperscript"/> </rtePlugins> <uiSettings jcr:primaryType="nt:unstructured"> <cui jcr:primaryType="nt:unstructured"> <inline jcr:primaryType="nt:unstructured" toolbar="[#edit,format#bold,format#italic,format#underline,#justify,-,#lists,-,links#modifylink,links#unlink,links#anchor,-,-,#paraformat,-,#styles,-,edit#cut,edit#copy,edit#paste-plaintext,edit#paste-default,edit#paste-wordhtml,-,undo#undo,undo#redo,-,findreplace#find,findreplace#replace,-,spellcheck#checktext,-,misctools#sourceedit,misctools#specialchars,-,table#createoredit,subsuperscript#superscript,subsuperscript#subscript]"> <popovers jcr:primaryType="nt:unstructured"> <paraformat jcr:primaryType="nt:unstructured" items="paraformat:getFormats:paraformat-pulldown" ref="paraformat"/> <lists jcr:primaryType="nt:unstructured" items="[lists#unordered,lists#ordered,lists#outdent,lists#indent]" ref="lists"/> <justify jcr:primaryType="nt:unstructured" items="[justify#justifyleft,justify#justifycenter,justify#justifyright]" ref="justify"/> <findreplace jcr:primaryType="nt:unstructured" items="[findreplace#find,findreplace#replace]" ref="findreplace"/> </popovers> </inline> <dialogFullScreen jcr:primaryType="nt:unstructured" toolbar="[#edit,format#bold,format#italic,format#underline,#justify,-,#lists,-,links#modifylink,links#unlink,links#anchor,-,-,#paraformat,-,#styles,-,edit#cut,edit#copy,edit#paste-plaintext,edit#paste-default,edit#paste-wordhtml,-,undo#undo,undo#redo,-,findreplace#find,findreplace#replace,-,spellcheck#checktext,-,misctools#sourceedit,misctools#specialchars,-,table#createoredit,subsuperscript#superscript,subsuperscript#subscript,-,fullscreen#start,useFixedInlineToolbar=true]"> <popovers jcr:primaryType="nt:unstructured"> <paraformat jcr:primaryType="nt:unstructured" items="paraformat:getFormats:paraformat-pulldown" ref="paraformat"/> <lists jcr:primaryType="nt:unstructured" items="[lists#unordered,lists#ordered,lists#outdent,lists#indent]" ref="lists"/> <justify jcr:primaryType="nt:unstructured" items="[justify#justifyleft,justify#justifycenter,justify#justifyright]" ref="justify"/> <findreplace jcr:primaryType="nt:unstructured" items="[findreplace#find,findreplace#replace]" ref="findreplace"/> </popovers> </dialogFullScreen> </cui> </uiSettings> <htmlRules jcr:primaryType="nt:unstructured"> <blockHandling jcr:primaryType="nt:unstructured" removeSingleParagraphContainer="{Boolean}true"/> </htmlRules> </description> </items> </column> </items> </field> </itemmultifield> </items> </column> </items> </promotionItems> </items> </fieldset> </items> </column> </items> </tab1> </items> </content> </jcr:root>
I have already added the node with multifield compare with that it should work.
Please let me know the root cause of this issue.
Your rte structure is wrong compare with the one i posted

Answers (1)

Answers (1)

Ankur_Khare

MVP

13-05-2020

Sample multifield with rte working fine on aem 6.5-

 

<cards
jcr:primaryType="nt:unstructured"
jcr:title="cards content"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
class="full-width"
composite="{Boolean}true"
fieldDescription="Click '+' to add a new link">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
acs-commons-nested=""
name="./cards">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<linklabel
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Enter card details"
fieldLabel="Enter card details"
name="./cardData"/>
<contactinfo
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog/richtext"
fieldDescription="Please enter  Info"
fieldLabel="Contact Info"
name="./contactinfo"
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="*"/>
<table
jcr:primaryType="nt:unstructured"
features="-">
<hiddenHeaderConfig
jcr:primaryType="nt:unstructured"
hiddenHeaderClassName="cq-wcm-foundation-aria-visuallyhidden"
hiddenHeaderEditingCSS="cq-RichText-hiddenHeader--editing"/>
</table>
<rtePlugins jcr:primaryType="nt:unstructured">
<format
jcr:primaryType="nt:unstructured"
features="bold,italic"/>
<justify
jcr:primaryType="nt:unstructured"
features="-"/>
<links
jcr:primaryType="nt:unstructured"
features="modifylink,unlink"/>
<lists
jcr:primaryType="nt:unstructured"
features="*"/>
<misctools jcr:primaryType="nt:unstructured">
<specialCharsConfig jcr:primaryType="nt:unstructured">
<chars jcr:primaryType="nt:unstructured">
<default_copyright
jcr:primaryType="nt:unstructured"
entity="&amp;copy;"
name="copyright"/>
<default_euro
jcr:primaryType="nt:unstructured"
entity="&amp;euro;"
name="euro"/>
<default_registered
jcr:primaryType="nt:unstructured"
entity="&amp;reg;"
name="registered"/>
<default_trademark
jcr:primaryType="nt:unstructured"
entity="&amp;trade;"
name="trademark"/>
</chars>
</specialCharsConfig>
</misctools>
<paraformat
jcr:primaryType="nt:unstructured"
features="*">
<formats jcr:primaryType="nt:unstructured">
<default_p
jcr:primaryType="nt:unstructured"
description="Paragraph"
tag="p"/>
<default_h1
jcr:primaryType="nt:unstructured"
description="Heading 1"
tag="h1"/>
<default_h2
jcr:primaryType="nt:unstructured"
description="Heading 2"
tag="h2"/>
<default_h3
jcr:primaryType="nt:unstructured"
description="Heading 3"
tag="h3"/>
<default_h4
jcr:primaryType="nt:unstructured"
description="Heading 4"
tag="h4"/>
<default_h5
jcr:primaryType="nt:unstructured"
description="Heading 5"
tag="h5"/>
<default_h6
jcr:primaryType="nt:unstructured"
description="Heading 6"
tag="h6"/>
<default_blockquote
jcr:primaryType="nt:unstructured"
description="Quote"
tag="blockquote"/>
<default_pre
jcr:primaryType="nt:unstructured"
description="Preformatted"
tag="pre"/>
</formats>
</paraformat>
<table
jcr:primaryType="nt:unstructured"
features="-">
<hiddenHeaderConfig
jcr:primaryType="nt:unstructured"
hiddenHeaderClassName="cq-wcm-foundation-aria-visuallyhidden"
hiddenHeaderEditingCSS="cq-RichText-hiddenHeader--editing"/>
</table>
<tracklinks
jcr:primaryType="nt:unstructured"
features="*"/>
</rtePlugins>
</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,links#modifylink,links#unlink,#paraformat]">
<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"/>
</popovers>
</inline>
<dialogFullScreen
jcr:primaryType="nt:unstructured"
toolbar="[format#bold,format#italic,format#underline,justify#justifyleft,justify#justifycenter,justify#justifyright,lists#unordered,lists#ordered,lists#outdent,lists#indent,links#modifylink,links#unlink,table#createoredit,#paraformat,image#imageProps]">
<popovers jcr:primaryType="nt:unstructured">
<paraformat
jcr:primaryType="nt:unstructured"
items="paraformat:getFormats:paraformat-pulldown"
ref="paraformat"/>
</popovers>
</dialogFullScreen>
<tableEditOptions
jcr:primaryType="nt:unstructured"
toolbar="[table#insertcolumn-before,table#insertcolumn-after,table#removecolumn,-,table#insertrow-before,table#insertrow-after,table#removerow,-,table#mergecells-right,table#mergecells-down,table#mergecells,table#splitcell-horizontal,table#splitcell-vertical,-,table#selectrow,table#selectcolumn,-,table#ensureparagraph,-,table#modifytableandcell,table#removetable,-,undo#undo,undo#redo,-,table#exitTableEditing,-]"/>
</cui>
</uiSettings>
</contactinfo>
</items>
</column>
</items>
</field>
</cards>