Text field in AEM enhance components does not allow a different h tag after line break

Avatar

Avatar

mohanasundaramp

Avatar

mohanasundaramp

mohanasundaramp

20-11-2020

sample screen.jpgHi all,

I am facing issue in text component para format icon disabled for below scenario, Any one can help to fix this issue.

  1. In Text component enter copy in the main text field (not the Title field, if the component has that). 
  2. Create a line break and type more copy.
  3. Attempt to change the h-tag setting on that new line of copy to a size other than "Paragraph;" Observe that the paragraph icon (¶) in the toolbar above the text field is grayed out and will therefore not allow user to make any changes to the h-tag. See attached screenshot for example. 

PFA also.

 

Thanks,

Mohan

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.0K

Correct Answer

831
Arun_Patidar
MVP

22-11-2020

Are you using line break(Shift+Enter or <br>) or entering(Enter) to new line?

Avatar

Avatar

BrianKasingli

MVP

Avatar

BrianKasingli

MVP

BrianKasingli
MVP

20-11-2020

@mohanasundaramp,

Can you please share with us the Granite UI XML configuration that you are using for the RichText?

Please find my xml file.
<?xml version="1.0" encoding="UTF-8"?> <jcr:root 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="cq:EditConfig"> <cq:inplaceEditing jcr:primaryType="cq:InplaceEditingConfig" active="{Boolean}true" configPath="inplaceEditingConfig" editorType="text"> <inplaceEditingConfig jcr:primaryType="nt:unstructured"> <rtePlugins jcr:primaryType="nt:unstructured"> <tracklinks jcr:primaryType="nt:unstructured" features="*"/> <table jcr:primaryType="nt:unstructured" features="*"> <hiddenHeaderConfig jcr:primaryType="nt:unstructured" hiddenHeaderClassName="cq-wcm-foundation-aria-visuallyhidden"/> </table> <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_hr jcr:primaryType="nt:unstructured" description="Horizontal Rule (visual line break)" tag="hr"/> <default_pre jcr:primaryType="nt:unstructured" description="Preformatted" tag="pre"/> <default_strong jcr:primaryType="nt:unstructured" description="Strong" tag="strong"/> </formats> </paraformat> <misctools jcr:primaryType="nt:unstructured" features="specialchars"> <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"/> <default_half jcr:primaryType="nt:unstructured" entity="&amp;half;" name="half"/> </chars> </specialCharsConfig> </misctools> <links jcr:primaryType="nt:unstructured" features="modifylink,unlink"/> <justify jcr:primaryType="nt:unstructured" features="*"/> <format jcr:primaryType="nt:unstructured" features="bold,italic,underline"/> </rtePlugins> </inplaceEditingConfig> </cq:inplaceEditing> </jcr:root>

Hi, you sent me xml for cq:EditConfig, but what I need is the XML configuration for cq/gui/components/authoring/dialog

using below xml congilg in dialog.
using below xml config in dialog.
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:Folder" sling:resourceSuperType="granite/ui/components/coral/foundation/form/field"/>

try replacing your entire touch ui xml configuration with this: 

https://gist.github.com/briankasingli/1a7e3e12deaa2e076645b09d30039b46

After replacing also facing same issue.

Avatar

Avatar

sureshd71454102

Avatar

sureshd71454102

sureshd71454102

20-11-2020

If your second paragraph contains any List Items (1. xxx 2.ccc etc) , then this text will not come under Paragraphed and the Paragraph icon will disable,

If your second copy is plain text, then it will treat as Paragraph.