Expand my Community achievements bar.

Double Quotes are removed from Textarea (dialog)

Avatar

Level 2

Hi everyone.

I've got a dialog for a component that has been created with a slideshow. Inside of each slide there is a textarea component.

The problem I'm facing is that the textarea removes any double quotes that are added. Like if you were to modify the component to add some text and this text includes a double quotes, it removes them and anything that comes after.

For example let's say this is the text I were gonna add:

This is a sample text "double quoted text" more text

After the component has been updated, this is the resulting text

This is a sample text

I realized this weird behavior only occurs for textareas inside a slideshow.

This is a chunk of the dialog that defines the slideshow, the property I mean is the one called <description>

<slideshow
jcr:primaryType="nt:unstructured"
sling:resourceType="/apps/cq/gui/components/authoring/dialog/slideshow/slideshow">
      <slidelist
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/foundation/container"
        class="cq-Slideshow-list">
       <items jcr:primaryType="nt:unstructured">
            <list
             jcr:primaryType="nt:unstructured"
             sling:resourceType="granite/ui/components/foundation/form/select"
             class="cq-Slideshow-dialog-select"
             emptyText="New Item">
                 <datasource
                  jcr:primaryType="nt:unstructured"
                  sling:resourceType="/apps/cq/gui/components/authoring/dialog/slideshow/slidedatasource"
                  addNone="{Boolean}true"
                  path="${requestPathInfo.suffix}"/>
            </list>
            <actions
             jcr:primaryType="nt:unstructured"
             sling:resourceType="granite/ui/components/foundation/container"
             class="cq-Slideshow-list-actions">
                 <items jcr:primaryType="nt:unstructured">
                      <add
                       jcr:primaryType="nt:unstructured"
                       sling:resourceType="granite/ui/components/foundation/button"
                       class="js-Slideshow-add"
                       icon="coral-Icon coral-Icon--add"
                       iconSize="S"
                       title="Add"
                       variant="[square,quiet]"/>
                      <delete
                       jcr:primaryType="nt:unstructured"
                       sling:resourceType="granite/ui/components/foundation/button"
                       class="js-Slideshow-delete"
                       icon="coral-Icon coral-Icon--delete"
                       iconSize="S"
                       title="Delete"
                       variant="[square,quiet]"/>
                 </items>
            </actions>
       </items>
       </slidelist>
       <slidedetail
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/foundation/container">
            <layout
             jcr:primaryType="nt:unstructured"
             sling:resourceType="granite/ui/components/foundation/layouts/well"/>
            <items jcr:primaryType="nt:unstructured">
                 <title
                  jcr:primaryType="nt:unstructured"
                  sling:resourceType="granite/ui/components/foundation/form/textfield"
                  fieldLabel="Title"
                  name="jcr:title"/>
                 <dropzone
                  jcr:primaryType="nt:unstructured"
                  sling:resourceType="granite/ui/components/foundation/container"
                  class="cq-DropArea cq-DropArea--image">
                      <layout
                       jcr:primaryType="nt:unstructured"
                       sling:resourceType="granite/ui/components/foundation/layouts/well"/>
                 </dropzone>
                 <description
                  jcr:primaryType="nt:unstructured"
                  sling:resourceType="granite/ui/components/foundation/form/textarea"
                  fieldLabel="Description"
                  name="jcr:description"/>
                 <contentLink
                  jcr:primaryType="nt:unstructured"
                  sling:resourceType="granite/ui/components/foundation/form/pathbrowser"
                  fieldLabel="Link"
                  fieldDescription="External links must start with 'http://' or 'https://'."
                  rootPath="/content"
                  name="jcr:contentLink"/>
                 <linkText
                  jcr:primaryType="nt:unstructured"
                  sling:resourceType="granite/ui/components/foundation/form/textfield"
                  fieldDescription="Optional: Leaving blank will result in 'Read More' being displayed."
                  fieldLabel="Link Text"
                  name="jcr:linkText"/>
                 <displayOrder
                  jcr:primaryType="nt:unstructured"
                  sling:resourceType="granite/ui/components/foundation/form/numberfield"
                  fieldLabel="Display Order"
                  name="jcr:displayOrder"/>
            </items>
       </slidedetail>
</slideshow>

Any thoughts on this? Thank you!

2 Replies

Avatar

Employee Advisor

Not sure if this related to AEM Forms

maybe am AEM issue

Avatar

Administrator

Moving this question to AEM main topic.

~kautuk



Kautuk Sahni