Extending Basic Page Text Property and Converting to RTE
Hi,
I have extended description property in my base page component using below code for basic tab to make description field RTE from simple text.
<basic
jcr:primaryType="nt:unstructured"
jcr:title="Basic"
sling:orderBefore="article"
sling:resourceSuperType="wcm/foundation/components/basicpage/v1/basicpage/tabs/basic"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">
<items jcr:primaryTfype="nt:unstructured">
<column jcr:primaryType="nt:unstructured">
<items jcr:primaryType="nt:unstructured">
<moretitles jcr:primaryType="nt:unstructured">
<items jcr:primaryType="nt:unstructured">
<description
cq:showOnCreate="{Boolean}true"
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog/richtext"
required="true"
useFixedInlineToolbar="true">
<rtePlugins jcr:primaryType="nt:unstructured">
<format
jcr:primaryType="nt:unstructured"
features="bold,italic"/>
Behavior on page property for existing page is as follows:

For new page:

Editing on existing page works fine but during new page creation it creates an issue.
Update: Our requirement is to display description in paragraph form with line breaks as it is authored on page properties. Right now it is being displayed in one long paragraph clustered together even if we add line breaks.

