• Fabrik4.5.3 for J!5.3.0 and J!4.2+is out

    You must update from Fabrik4.5.1 if you are running Joomla!5.3.0

    See Announcements

Solved Line break ignored in textarea (custom Details template)

Hi

I have some textarea elements in a custom Details template and just noticed that the line break tags <br> are being ignored. This is a recent change so I'm wondering if any changes were made to the default bootstrap template which I need to copy to my custom template, given that everything looks fine using the default bootstrap template. I had a quick look but can't see anything obvious.

Thanks.
 
Last edited:
Which exact Fabrik version are you running?
And when did you copy the details bootstrap to create your custom template?

If it's working with the Fabrik template do a file compare.
The last change to details bootstrap was more than a year ago and releated to repeat groups.
 
Ah, ok. Thanks @troester I’ll do a careful file compare. I’m using F4.5.1 and I created my custom template at least a year ago. It was working fine until very recently. Maybe it’s something I’ve done, though I can’t think what. Not done anything with those particular textarea elements. Ah well…
 
I guess it could have been the 4.5 update. I didn't update this site straight away in November, it could have been as late as January.
I just changed one of the textarea elements to enable the WYSIWYG editor which had an impact. Now the <br> tags have disappeared and if I edit the text and put paragraphs in, these are displayed correctly in the custom template.
Without the WYSIWYG editor enabled, the text is saved in the database with actual spaces which are visible as <br> tags only in the browser Inspect tool.
Need to assess now which is quicker: comparing the templates or re-editing all the textareas!
 
Back
Top