[SOLVED] Linebreaks in Textarea fields ?

More
8 years 10 months ago #54830 by jkirsch
I'm using a Textarea field to store a street address. This field is handled in backend without HTML editor. Linebreaks are entered in it just by hiting the "return" key, without specific HTML encoding.

On Joomla 3.3 with Flexicontent 2.2, all was working well : The linebreaks were handled and the field was correctly displayed on multiple lines.

On Joomla 3.4 with Flexicontent 3.0 beta 5, the linebreaks aren't anymore handled. All the field content is displayed on a single line.

What should I do to have a correct display on multiple lines ?

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #54848 by ggppdk
Hello

made this commit:
# Minor change for textarea field to restore older behaviour, new lines will be converted to HTML line breaks when HTML editor is disabled, more 3 or more new lines will be converted to 2
github.com/FLEXIcontent/flexicontent-cck...c03b982bcb5ec69cd0d6

Making use of something like this:
Code:
if (!$use_html) { $value = nl2br(preg_replace("/(\r\n|\r|\n){3,}/", "\n\n", $value)); }


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: jkirsch

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #54859 by jkirsch
Thank you very much.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.264 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline