Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

TextArea Content Wrap like strong tag in html.

dhanubrp
Level 2
Level 2

 

In the page properties we have many TextArea fields( @TextArea ).

While entering data in the text area field, If author enters data by leaving more spaces, data saving to the crx in the same way with spaces.
Please find the attached screenshot for reference.

 

TextArea.PNG

While generating reports these blank spaces or lines causing some alignment issues.

Is there any way that we can wrap the TextArea data like strong tag in html.

Can anyone please give some idea how to achieve this?

1 Reply
Vijayalakshmi_S
Community Advisor
Community Advisor

Hi @dhanubrp,

Hope you are making use of  Coral UI 3 text area resource - granite/ui/components/coral/foundation/form/textarea.

If yes, this renders HTML's text area tag for capturing multiline input as plain text and not as rich text content. 

 

I tried using making use of this resource in component dialog and retrieved in HTL -> couldn't see the spaces showing up. 

Can you elaborate on how and where you are retrieving these text area field from page properties