no line break recognition in text with image textarea

Use GitHub to post bug reports and error descriptions for phpwcms. Describe your problem detailed!
Locked
User avatar
habi
Posts: 166
Joined: Sun 15. Feb 2004, 13:39
Location: Rutschwil, Switzerland
Contact:

no line break recognition in text with image textarea

Post by habi »

Just detected a small "bug" that in the textarea field of the text with image contentpart the linebreaks are not replaced by "<br/>" as in the textarea field in the pain text contentpart.

(I'm not using a wysiwyg editor - safari user)

Perhaps I can find the place to fix it.
rk
Posts: 162
Joined: Sat 24. Apr 2004, 23:48
Location: Hannover, Germany
Contact:

Post by rk »

i think you should use [br].
Ralf
User avatar
habi
Posts: 166
Joined: Sun 15. Feb 2004, 13:39
Location: Rutschwil, Switzerland
Contact:

Post by habi »

Ok! That could be a possible solution but that's not the way I would like to do because similar input fields should be treated the same way and in a textarea file I expect that the engine replaces the returns automatically to <br/> or encloses the paragraphs in <p></p>
User avatar
habi
Posts: 166
Joined: Sun 15. Feb 2004, 13:39
Location: Rutschwil, Switzerland
Contact:

Post by habi »

The workaround:

In include/inc_front/content/cnt1.article.inc.php enclose the following expressions in each case statement of the switch control:

Code: Select all

div_class($crow["acontent_text"],$template_default["article"]["text_class"]
with nl2br(). So they look then like this:

Code: Select all

nl2br(div_class($crow["acontent_text"],$template_default["article"]["text_class"]))
exept the switch case commented with "im Text links". There you have to put the nl2br() around the following code at the second line of the case statement:

Code: Select all

$crow["acontent_text"]
Locked